Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

text::micromason::quicktemplate(3pm) [debian man page]

MicroMason::QuickTemplate(3pm)				User Contributed Perl Documentation			    MicroMason::QuickTemplate(3pm)

NAME
Text::MicroMason::QuickTemplate - Alternate Syntax like Text::QuickTemplate SYNOPSIS
Instead of using this class directly, pass its name to be mixed in: use Text::MicroMason; my $mason = Text::MicroMason::Base->new( -QuickTemplate ); Use the standard compile and execute methods to parse and evalute templates: print $mason->compile( text=>$template )->( @%args ); print $mason->execute( text=>$template, @args ); Or use Text::QuickTemplate's calling conventions: $template = Text::MicroMason->new( -HTMLTemplate, text=>'simple.tmpl' ); print $template->fill( %arguments ); Text::QuickTemplate provides a syntax to embed values into a text template: Good {{timeofday}}, {{name}}! DESCRIPTION
This mixin class overrides several methods to allow MicroMason to emulate the template syntax and some of the other features of Text::QuickTemplate. This class automatically includes the following other mixins: TemplateDir, HasParams, and StoreOne. Compatibility with Text::QuickTemplate This is not a drop-in replacement for Text::QuickTemplate, as the implementation is quite different, but it should be able to process most existing templates without major changes. The following features of EmbPerl syntax are supported: o Curly bracketed tags with parameter names. o Array of parameters hashes. o Special $DONTSET variable. SEE ALSO
The interface being emulated is described in Text::QuickTemplate. For an overview of this templating framework, see Text::MicroMason. This is a mixin class intended for use with Text::MicroMason::Base. For distribution, installation, support, copyright and license information, see Text::MicroMason::Docs::ReadMe. perl v5.10.1 2007-01-29 MicroMason::QuickTemplate(3pm)

Check Out this Related Man Page

MicroMason::CompileCache(3pm)				User Contributed Perl Documentation			     MicroMason::CompileCache(3pm)

NAME
Text::MicroMason::CompileCache - Use a Cache for Template Compilation SYNOPSIS
Instead of using this class directly, pass its name to be mixed in: use Text::MicroMason; my $mason = Text::MicroMason->new( -CompileCache ); Use the standard compile and execute methods to parse and evalute templates: print $mason->execute( text=>$template, 'name'=>'Dave' ); The template does not have to be parsed the second time because it's cached: print $mason->execute( text=>$template, 'name'=>'Bob' ); Templates stored in files are also cached, until the file changes: print $mason->execute( file=>"./greeting.msn", 'name'=>'Charles'); DESCRIPTION
Public Methods compile() Caching wrapper around normal compile() behavior. Supported Attributes compile_cache_text Defaults to an instance of Text::MicroMason::Cache::Simple. You may pass in your own cache object. compile_cache_file Defaults to an instance of Text::MicroMason::Cache::File. You may pass in your own cache object. This module uses a simple cache interface that is widely supported: the only methods required are "get($key)" and "set($key, $value)". You can use the simple cache classes provided in the Text::MicroMason::Cache:: namespace, or select other caching modules on CPAN that support the interface described in Cache::Cache. SEE ALSO
For an overview of this templating framework, see Text::MicroMason. This is a mixin class intended for use with Text::MicroMason::Base. For distribution, installation, support, copyright and license information, see Text::MicroMason::Docs::ReadMe. perl v5.10.1 2007-01-29 MicroMason::CompileCache(3pm)
Man Page