Class Tilt::StringTemplate
In: lib/sinatra/tilt.rb
Parent: Template

The template source is evaluated as a Ruby string. The #{} interpolation syntax can be used to generated dynamic output.

Methods

Public Instance methods

[Source]

     # File lib/sinatra/tilt.rb, line 347
347:     def precompiled_template(locals)
348:       @code
349:     end

[Source]

     # File lib/sinatra/tilt.rb, line 343
343:     def prepare
344:       @code = "%Q{#{data}}"
345:     end

[Validate]