Class ActionView::CompiledTemplates
In: lib/action_view/compiled_templates.rb
Parent: Module

CompiledTemplates modules hold methods that have been compiled. Templates are compiled into these methods so that they do not need to be re-read and re-parsed 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.

Methods

Attributes

method_names  [R] 

Public Class methods

Public Instance methods

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.

The file_name, if provided will appear in backtraces. If not provded, the file_name defaults to the identifier.

This method will return the selector for the compiled version of this method.

compiled?(identifier, arg_names)

Alias for selector

Return the full key for the given identifier and argument names

Return the time at which the method for the given identifier and argument names was compiled.

Return the selector for this method or nil if it has not been compiled

Wrap the provided source in a def … end block.

[Validate]