Class: NiceKramdownTemplate

Inherits:
Tilt::KramdownTemplate
  • Object
show all
Defined in:
lib/nice_kramdown_template.rb

Instance Method Summary collapse

Instance Method Details

#evaluate(scope, locals, &block) ⇒ Object



6
7
8
9
10
11
12
# File 'lib/nice_kramdown_template.rb', line 6

def evaluate(scope, locals, &block)
  result, warnings = NiceHtmlConverter.convert(@engine.root, @engine.options)
  if warnings.length > 0
    puts warnings
  end
  @output ||= result
end