| Class | PageTemplate::IncludeCommand |
| In: |
lib/PageTemplate/commands.rb
|
| Parent: | Command |
IncludeCommand allows the designer to include a template from another source.
If literal exists in parser.source, then it is called without passing it to its namespace. If it does not exist, then it is evaluated within the context of its namespace and then passed to parser.source for fetching the body of the file/source.
The body returned by the Source is then passed to Parser for compilation.
If @value exists in parser.source, then it is called without passing it to its namespace. If it does not exist, then it is evaluated within the context of its namespace and then passed to parser.source for fetching the body of the file/source.
The body returned by the Source is then passed to Parser for compilation.