Class

CompiledTemplates

Extends:

CompiledTemplates modules hold methods that have been compiled. Templates are compiled into these methods so that they do not need to be read and parsed for each request.

Each template may be compiled into one or more methods. Each method accepts a given set of parameters which is used to implement local assigns passing.

To use a compiled template module, create a new instance and include it into the class in which you want the template to be rendered.

Public Attributes
method_names
Public Methods
compile_source Compile the provided source code for the given argument names and with the given initial line number. The identifier should be unique to this source.
compiled? Alias for #selector
full_key Return the full key for the given identifier and argument names
mtime Return the time at which the method for the given identifier and argument names was compiled.
new
selector Return the selector for this method or nil if it has not been compiled
wrap_source Wrap the provided source in a def … end block.
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.