Piffle::Template 0.3.1
Sponsored Links
Piffle::Template 0.3.1 Ranking & Summary
File size:
0.009 MB
Platform:
Any Platform
License:
Perl Artistic License
Price:
Downloads:
1136
Date added:
2006-09-13
Publisher:
Andrew Chadwick
Piffle::Template 0.3.1 description
Piffle::Template is a Perlish templating language.
SYNOPSIS
use Piffle::Template;
use Piffle::Template qw{template_to_perl expand_template};
# OO syntax, with output stored and returned:
print Piffle::Template->expand(source_file => foo/fish.xml,
include_path => [foo/inc,foo]);
# Immediate: OO syntax: output goes directly to STDOUT:
Piffle::Template->expand(source_file => foo/fish.xml,
output_file => *STDOUT);
# Procedural syntax, data from a string
$string = <<__END__;
< ?perl for $world (1 .. 10) { ? >
Hello world number {$world}.
< ?perl print random_greeting(); ? >
< ?perl } ? >
< ?include std_disclaimer.txt? >
__END__
expand_template(source => $string,
output_file => *FILE);
This is a simple Perl-embedding syntax for template code which is geared towards allowing authors to validate their templates directly against schemas or DTDs. The embedded language is Perl itself, which allows great flexibility at the expense of having to be disciplined about the barrier between template code and module code.
In operation, the source template is transformed to an in-memory Perl script which is then run using Perls eval operator. Errors can be redirected to files or subroutines, and the output can be either caught in a variable or written to a file or open filehandle.
SYNOPSIS
use Piffle::Template;
use Piffle::Template qw{template_to_perl expand_template};
# OO syntax, with output stored and returned:
print Piffle::Template->expand(source_file => foo/fish.xml,
include_path => [foo/inc,foo]);
# Immediate: OO syntax: output goes directly to STDOUT:
Piffle::Template->expand(source_file => foo/fish.xml,
output_file => *STDOUT);
# Procedural syntax, data from a string
$string = <<__END__;
< ?perl for $world (1 .. 10) { ? >
Hello world number {$world}.
< ?perl print random_greeting(); ? >
< ?perl } ? >
< ?include std_disclaimer.txt? >
__END__
expand_template(source => $string,
output_file => *FILE);
This is a simple Perl-embedding syntax for template code which is geared towards allowing authors to validate their templates directly against schemas or DTDs. The embedded language is Perl itself, which allows great flexibility at the expense of having to be disciplined about the barrier between template code and module code.
In operation, the source template is transformed to an in-memory Perl script which is then run using Perls eval operator. Errors can be redirected to files or subroutines, and the output can be either caught in a variable or written to a file or open filehandle.
Piffle::Template 0.3.1 Screenshot
Piffle::Template 0.3.1 Keywords
Template 0.3.1
Templating Language
file
template
language
output
expand
Templating
Piffle::Template
PiffleTemplate
Piffle::Template 0.3.1
Libraries
Programming
Bookmark Piffle::Template 0.3.1
Piffle::Template 0.3.1 Copyright
WareSeeker periodically updates pricing and software information of Piffle::Template 0.3.1 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 Piffle::Template 0.3.1 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
templating languages
template gallery
python templating language
resume templates
templates microsoft
templates
file extension pdf
php templating language
templates wilson jones
fileneu0027s
resume template
templates dreamweaver
templates for resumes
microsoft templates
output express
language of flowers
file extension dll
template monster
Related Software
Parse::Template was initially created to serve as a code generator for the Parse::Lex class. Free Download
web.template is a template framework for PHP 5 that uses an XML-based language. Free Download
libtemplate is a C template library for CGI programs. Free Download
The MfGames.Template library is a C# native library for creating template libaries. Free Download
PLaTos is a framework for easy and comfortable building of various LaTeX documents. Free Download
HTML::CMTemplate.pm is a Perl module that can generate text-based content from templates. Free Download
dTemplate is known as the most rapid templating system in the known universe. Free Download
Template::FAQ contains Frequently Asked Questions about the Template Toolkit. Free Download
Latest Software
Popular Software
Favourite Software