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 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.
method_names | [R] |
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.
Return the selector for this method or nil if it has not been compiled