Class: JekyllGeneratorTemplate
- Inherits:
-
Jekyll::Generator
- Object
- Jekyll::Generator
- JekyllGeneratorTemplate
- Defined in:
- jekyll_generator_template.rb
Overview
Describe this Jekyll generator here.
Instance Method Summary collapse
-
#generate(site) ⇒ void
Method prescribed by the Jekyll plugin lifecycle.
-
#initialize(config) ⇒ JekyllGeneratorTemplate
constructor
A new instance of JekyllGeneratorTemplate.
Constructor Details
#initialize(config) ⇒ JekyllGeneratorTemplate
Returns a new instance of JekyllGeneratorTemplate.
9 10 11 12 |
# File 'jekyll_generator_template.rb', line 9 def initialize(config) super(config) @log = LoggerFactory.new.create_logger('my_generator_template', config, :warn, $stderr) end |
Instance Method Details
#generate(site) ⇒ void
This method returns an undefined value.
Method prescribed by the Jekyll plugin lifecycle.
17 18 19 20 21 |
# File 'jekyll_generator_template.rb', line 17 def generate(site) @config = site.config @mode = @config['env']['JEKYLL_ENV'] @log.info "mode=#{@mode}".green end |