Class: Tilt::StringTemplate
Overview
The template source is evaluated as a Ruby string. The #{} interpolation syntax can be used to generated dynamic output.
Instance Attribute Summary
Attributes inherited from Template
Instance Method Summary collapse
Methods inherited from Template
#basename, #eval_file, #initialize, #name, #render
Constructor Details
This class inherits a constructor from Tilt::Template
Instance Method Details
#precompiled_template(locals) ⇒ Object
348 349 350 |
# File 'lib/frank/tilt.rb', line 348 def precompiled_template(locals) @code end |
#prepare ⇒ Object
344 345 346 |
# File 'lib/frank/tilt.rb', line 344 def prepare @code = "%Q{#{data}}" end |