Tilt::Template
# File lib/temple/templates/tilt.rb, line 10 def self.default_mime_type default_options[:mime_type] end
A string containing the (Ruby) source code for the template.
@param [Hash] locals Local variables @return [String] Compiled template ruby code
# File lib/temple/templates/tilt.rb, line 35 def precompiled_template(locals = {}) @src end
Prepare Temple template
Called immediately after template data is loaded.
@return [void]
# File lib/temple/templates/tilt.rb, line 23 def prepare # Overwrite option: No streaming support in Tilt opts = {}.update(self.class.default_options).update(options).update(:file => eval_file, :streaming => false) opts.delete(:mime_type) opts.delete(:outvar) # Sinatra gives us this invalid variable @src = self.class.compile(data, opts) end
Generated with the Darkfish Rdoc Generator 2.