Class: Laydown::Template
- Inherits:
-
Tilt::Template
- Object
- Tilt::Template
- Laydown::Template
- Defined in:
- lib/laydown.rb
Instance Method Summary collapse
-
#initialize(hsh) ⇒ Template
constructor
A new instance of Template.
- #precompiled_template(locals) ⇒ Object
- #prepare ⇒ Object
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 |
#prepare ⇒ Object
81 82 83 |
# File 'lib/laydown.rb', line 81 def prepare @src = Laydown.compile() end |