Sha256: a83f1e5b9b42560f7159984b5a3d098f6eb40b6b916ec1d4cf275038faf7553b

Contents?: true

Size: 478 Bytes

Versions: 1

Compression:

Stored size: 478 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
    def generate(site)
      site.pages << TestPage.new(site, site.source, '', 'test.txt')
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
jekyll_test_plugin-0.0.1 lib/jekyll_test_plugin.rb