Template::Simple 0.01
Sponsored Links
Template::Simple 0.01 Ranking & Summary
File size:
0.015 MB
Platform:
Any Platform
License:
Perl Artistic License
Price:
Downloads:
1121
Date added:
2006-09-29
Publisher:
Uri Guttman
Template::Simple 0.01 description
Template::Simple is a simple and fast template module.
SYNOPSIS
use Template::Simple;
my $tmpl = Template::Simple->new();
my $template = <<TMPL ;
[%INCLUDE header%]
[%START row%]
[%first%] - [%second%]
[%END row%]
[%INCLUDE footer%]
TMPL
my $data = {
header_data => {
date => Jan 1, 2008,
author => Me, myself and I,
},
row => [
{
first => row 1 value 1,
second => row 1 value 2,
},
{
first => row 2 value 1,
second => row 2 value 2,
},
],
footer_data => {
modified => Aug 31, 2006,
},
} ;
my $rendered = $tmpl->render( $template, $data ) ;
Template::Simple has these goals:
Support most common template operations
It can recursively include other templates, replace tokens (scalars), recursively render nested chunks of text and render lists. By using simple idioms you can get conditional renderings.
Complete isolation of template from program code
This is very important as template design can be done by different people than the program logic. It is rare that one person is well skilled in both template design and also programming.
Very simple template markup (only 4 markups)
The only markups are INCLUDE, START, END and token. See MARKUP for more.
Easy to follow rendering rules
Rendering of templates and chunks is driven from a data tree. The type of the data element used in an rendering controls how the rendering happens. The data element can be a scalar or scalar reference or an array, hash or code reference.
Efficient template rendering
Rendering is very simple and uses Perls regular expressions efficiently. Because the markup is so simple less processing is needed than many other templaters. Precompiling templates is not supported yet but that optimization is on the TODO list.
Easy user extensions
User code can be called during an rendering so you can do custom renderings and plugins. Closures can be used so the code can have its own private data for use in rendering its template chunk.
SYNOPSIS
use Template::Simple;
my $tmpl = Template::Simple->new();
my $template = <<TMPL ;
[%INCLUDE header%]
[%START row%]
[%first%] - [%second%]
[%END row%]
[%INCLUDE footer%]
TMPL
my $data = {
header_data => {
date => Jan 1, 2008,
author => Me, myself and I,
},
row => [
{
first => row 1 value 1,
second => row 1 value 2,
},
{
first => row 2 value 1,
second => row 2 value 2,
},
],
footer_data => {
modified => Aug 31, 2006,
},
} ;
my $rendered = $tmpl->render( $template, $data ) ;
Template::Simple has these goals:
Support most common template operations
It can recursively include other templates, replace tokens (scalars), recursively render nested chunks of text and render lists. By using simple idioms you can get conditional renderings.
Complete isolation of template from program code
This is very important as template design can be done by different people than the program logic. It is rare that one person is well skilled in both template design and also programming.
Very simple template markup (only 4 markups)
The only markups are INCLUDE, START, END and token. See MARKUP for more.
Easy to follow rendering rules
Rendering of templates and chunks is driven from a data tree. The type of the data element used in an rendering controls how the rendering happens. The data element can be a scalar or scalar reference or an array, hash or code reference.
Efficient template rendering
Rendering is very simple and uses Perls regular expressions efficiently. Because the markup is so simple less processing is needed than many other templaters. Precompiling templates is not supported yet but that optimization is on the TODO list.
Easy user extensions
User code can be called during an rendering so you can do custom renderings and plugins. Closures can be used so the code can have its own private data for use in rendering its template chunk.
Template::Simple 0.01 Screenshot
Template::Simple 0.01 Keywords
Simple 0.01
Template Module
Fast Template
can be
template
simple
rendering
data
1
row
Template::Simple
TemplateSimple
Template::Simple 0.01
Libraries
Programming
Bookmark Template::Simple 0.01
Template::Simple 0.01 Copyright
WareSeeker periodically updates pricing and software information of Template::Simple 0.01 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 Template::Simple 0.01 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
simple ira
template gallery
rendering programs
architectural rendering
resume templates
tastefully simple
rendering companies
templates microsoft
simple case search
simple machines
templates
rendering plant
rendering services
simple green
templates wilson jones
3d rendering
real simple
rendering tutorial
Related Software
JooTemplateFiller is a free library that creates reports from a OpenOffice 2.0 writer template. Free Download
Template::Plugin::XML::Simple is a plugin interface to XML::Simple. Free Download
Blitz templates is a fast template engine written in C and compiled as a PHP module. Free Download
Pod::Template is a Perl module for building pod documentation from templates. Free Download
Template::Plugin::SumOf is a Perl module to calculate the sum with VMETHODS. Free Download
Template::Plugins is a Perl module with plugin provider module. Free Download
Perl object library for manipulating Flickr data via the Flickr API. Free Download
HCKit::Template is a Perl module with a template system for HTML construction. Free Download
Latest Software
Popular Software
Favourite Software