Class PageTemplate::IncludeCommand
In: lib/PageTemplate/commands.rb
Parent: Command

IncludeCommand allows the designer to include a template from another source.

% include variable %
or [% include literal %]

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.

Methods

new   output   to_s  

Public Class methods

Public Instance methods

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.

[Validate]