Main > Programming > Libraries >

Piffle::Template 0.3.1

Piffle::Template 0.3.1

Sponsored Links

Piffle::Template 0.3.1 Ranking & Summary

RankingClick at the star to rank
Ranking Level
User Review: 0 (0 times)
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.

Piffle::Template 0.3.1 Screenshot

Advertisements

Piffle::Template 0.3.1 Keywords

Bookmark Piffle::Template 0.3.1

Hyperlink code:
Link for forum:

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

Allok Video Splitter 2.2.0 Review:

Name (Required)
Email(Required)
Captcha
Featured Software

Want to place your software product here?
Please contact us for consideration.

Contact WareSeeker.com
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