Class: Tilt::StringTemplate

Inherits:
Template show all
Defined in:
lib/frank/tilt.rb

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

#data, #file, #line, #options

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

#prepareObject



344
345
346
# File 'lib/frank/tilt.rb', line 344

def prepare
  @code = "%Q{#{data}}"
end