Class: Laydown::Template

Inherits:
Tilt::Template
  • Object
show all
Defined in:
lib/laydown.rb

Instance Method Summary collapse

Constructor Details

#initialize(hsh) ⇒ Template

Returns a new instance of Template.



77
78
79
# File 'lib/laydown.rb', line 77

def initialize(hsh)
  super(nil, 1, hsh) { '' } # tilt hack
end

Instance Method Details

#precompiled_template(locals) ⇒ Object



85
86
87
# File 'lib/laydown.rb', line 85

def precompiled_template(locals)
  @src
end

#prepareObject



81
82
83
# File 'lib/laydown.rb', line 81

def prepare
  @src = Laydown.compile(options)
end