|
NAMEText::MicroMason::AllowGlobals - Share package vars between templatesSYNOPSISInstead of using this class directly, pass its name to be mixed in:use Text::MicroMason; my $mason = Text::MicroMason->new( -AllowGlobals ); Share package variables: $mason->set_globals( '$name' => 'Bob' ); Use the standard compile and execute methods to parse and evaluate templates: print $mason->compile( text=>$template )->(); print $mason->execute( text=>$template ); Then, in a template, you can refer to those globals: Welcome, <% $name %>! DESCRIPTIONPublic Methods
Supported Attributes
Private Methods
SEE ALSOFor an overview of this templating framework, see Text::MicroMason.This is a mixin class intended for use with Text::MicroMason::HTMLMason. For distribution, installation, support, copyright and license information, see Text::MicroMason::Docs::ReadMe.
Visit the GSP FreeBSD Man Page Interface. |