Text::MicroMason::Functions 1.992
Sponsored Links
Text::MicroMason::Functions 1.992 Ranking & Summary
File size:
0.068 MB
Platform:
Any Platform
License:
Perl Artistic License
Price:
Downloads:
843
Date added:
2007-07-10
Publisher:
Matthew Simon Cavalletto
Text::MicroMason::Functions 1.992 description
Text::MicroMason::Functions Perl module contains Function Exporter for Simple Mason Templates.
SYNOPSIS
Use the execute function to parse and evalute a template:
use Text::MicroMason::Functions qw( execute );
print execute($template, name=>Dave);
Or compile it into a subroutine, and evaluate repeatedly:
use Text::MicroMason::Functions qw( compile );
$coderef = compile($template);
print $coderef->(name=>Dave);
print $coderef->(name=>Bob);
Templates stored in files can be run directly or included in others:
use Text::MicroMason::Functions qw( execute_file );
print execute_file( "./greeting.msn", name=>Charles);
Safe usage restricts templates from accessing your files or data:
use Text::MicroMason::Functions qw( safe_execute );
print safe_execute( $template, name=>Bob);
All above functions are available in an error-catching "try_*" form:
use Text::MicroMason::Functions qw( try_execute );
($result, $error) = try_execute( $template, name=>Alice);
As an alternative to the object-oriented interface, text containing MicroMason markup code can be compiled and executed by calling the following functions.
Please note that this interface is maintained primarily for backward compatibility with version 1 of Text::MicroMason, and it does not provide access to some of the newer features.
Each function creates a new MicroMason object, including any necessary traits such as Safe compilation or CatchErrors for exceptions, and then passes its arguments to an appropriate method on that object.
You may import any of these functions by including their names in your use Text::MicroMason statement.
SYNOPSIS
Use the execute function to parse and evalute a template:
use Text::MicroMason::Functions qw( execute );
print execute($template, name=>Dave);
Or compile it into a subroutine, and evaluate repeatedly:
use Text::MicroMason::Functions qw( compile );
$coderef = compile($template);
print $coderef->(name=>Dave);
print $coderef->(name=>Bob);
Templates stored in files can be run directly or included in others:
use Text::MicroMason::Functions qw( execute_file );
print execute_file( "./greeting.msn", name=>Charles);
Safe usage restricts templates from accessing your files or data:
use Text::MicroMason::Functions qw( safe_execute );
print safe_execute( $template, name=>Bob);
All above functions are available in an error-catching "try_*" form:
use Text::MicroMason::Functions qw( try_execute );
($result, $error) = try_execute( $template, name=>Alice);
As an alternative to the object-oriented interface, text containing MicroMason markup code can be compiled and executed by calling the following functions.
Please note that this interface is maintained primarily for backward compatibility with version 1 of Text::MicroMason, and it does not provide access to some of the newer features.
Each function creates a new MicroMason object, including any necessary traits such as Safe compilation or CatchErrors for exceptions, and then passes its arguments to an appropriate method on that object.
You may import any of these functions by including their names in your use Text::MicroMason statement.
Text::MicroMason::Functions 1.992 Screenshot
Advertisements
Text::MicroMason::Functions 1.992 Keywords
MicroMason
Function Exporter Simple Mason Templates
Function Exporter
Functions Perl
Functions 1.992
Templates
Perl module
execute
function
name
print
QW
safe
Text::MicroMason::Functions
TextMicroMasonFunctions
Text::MicroMason::Functions 1.992
Bookmark Text::MicroMason::Functions 1.992
Text::MicroMason::Functions 1.992 Copyright
WareSeeker periodically updates pricing and software information of Text::MicroMason::Functions 1.992 full version from the publisher, so some information may be slightly out-of-date. You should confirm all information before relying on it. Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future development of Text::MicroMason::Functions 1.992 Edition. Download links are directly from our publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed
Featured Software
Want to place your software product here?
Please contact us for consideration.
Contact WareSeeker.com
Related Information
Related Software
Text::MicroMason::HTMLMason is a simple compiler for Mason-style Templating. Free Download
Text::MicroMason::Mason is a simple compiler for Mason-style Templating. Free Download
Text::MicroMason::ServerPages Perl module contains an alternate syntax like ASP/JSP Templates. Free Download
Genezzo::Havok::UserFunctions is a Perl module to load the user_functions table. Free Download
Term::ANSIScreen is a Perl module for terminal control using ANSI escape sequences. Free Download
Text::Scraper contains structured data from (un)structured text. Free Download
Term::ANSIColor is a color screen output using ANSI escape sequences. Free Download
File::FilterFuncs is a Perl module that specify filter functions for files. Free Download
Latest Software
Popular Software
Favourite Software