Class PageTemplate::Template
In: lib/PageTemplate/commands.rb
Parent: BlockCommand

Template is the top-level blockcommand object It is what is returned on Template.load() or Template.parse()

Template should only be called by the Parser, and never by anything else.

Methods

new   output   to_s  

Included Modules

NamespaceItem

Public Class methods

Template must know about the parser so it can access its namespace.

Public Instance methods

Template#output is a special case for a Command. Because Template is what‘s returned by Parser.load() or Parser.parse(), the programmer may well call Template#output(anything).

If object is a Namespace, then treat output as a typical BlockCommand. If object is nil, then namespace is @parser. Otherwise, a new namespace is created, a child of @namespace, and is assigned object as its namespace

[Validate]