# File lib/temple/templates/tilt.rb, line 26 def self.register_as(name) ::Tilt.register name.to_s, self 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 22 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 13 def prepare @src = self.class.build_engine({ :streaming => false, # Overwrite option: No streaming support in Tilt :file => eval_file }, options).call(data) end