Sha256: 67fac3a5e9668470e8231c1f3510e255f0d1c40c36c773600b2941e49907d2e4

Contents?: true

Size: 493 Bytes

Versions: 5

Compression:

Stored size: 493 Bytes

Contents

require "jekyll_test_plugin/version"
require "jekyll"

module JekyllTestPlugin
  class TestPage < Jekyll::Page
    def initialize(site, base, dir, name)
      @site = site
      @base = base
      @dir  = dir
      @name = name
      self.process(name)
      self.content = "this is a test"
      self.data = {}
    end
  end

  class TestGenerator < Jekyll::Generator
    safe true

    def generate(site)
      site.pages << TestPage.new(site, site.source, '', 'test.txt')
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
jekyll_test_plugin-0.2.0 lib/jekyll_test_plugin.rb
jekyll_test_plugin-0.0.2 lib/jekyll_test_plugin.rb
jekyll_test_plugin-0.1.2 lib/jekyll_test_plugin.rb
jekyll_test_plugin-0.1.1 lib/jekyll_test_plugin.rb
jekyll_test_plugin-0.1.0 lib/jekyll_test_plugin.rb