Class: Middleman::Renderers::KramdownTemplate

Inherits:
Tilt::KramdownTemplate
  • Object
show all
Defined in:
lib/middleman-core/renderers/kramdown.rb

Overview

Our own Kramdown Tilt template that simply uses our custom renderer.

Instance Method Summary collapse

Instance Method Details

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



8
9
10
11
12
13
14
# File 'lib/middleman-core/renderers/kramdown.rb', line 8

def evaluate(scope, locals, &block)
  @output ||= begin
    output, warnings = MiddlemanKramdownHTML.convert(@engine.root, @engine.options)
    @engine.warnings.concat(warnings)
    output
  end
end