Class: MiddlemanMdocs::TiltTemplate

Inherits:
Middleman::Renderers::KramdownTemplate
  • Object
show all
Defined in:
lib/middleman-mdocs/tilt_template.rb

Instance Method Summary collapse

Instance Method Details

#render(*args) ⇒ Object



5
6
7
8
9
10
11
# File 'lib/middleman-mdocs/tilt_template.rb', line 5

def render(*args)
  erb = Middleman::Renderers::ERb::Template.new(file, line, options) { data }
  @data = erb.render(*args)

  prepare
  super
end