Main > Programming > Libraries >

Template::Alloy 1.004

Template::Alloy 1.004

Sponsored Links

Template::Alloy 1.004 Ranking & Summary

RankingClick at the star to rank
Ranking Level
User Review: 0 (0 times)
File size: 0.14 MB
Platform: Any Platform
License: Perl Artistic License
Price:
Downloads: 850
Date added: 2007-06-28
Publisher: Paul Seamons

Template::Alloy 1.004 description

Template::Alloy is a TT2/3, HT, HTE, Tmpl, and Velocity Engine.

SYNOPSIS

Template::Toolkit style usage
my $t = Template::Alloy->new(
INCLUDE_PATH => [/path/to/templates],
);

my $swap = {
key1 => val1,
key2 => val2,
code => sub { 42 },
hash => {a => b},
};

# print to STDOUT
$t->process(my/template.tt, $swap)
|| die $t->error;

# process into a variable
my $out = ;
$t->process(my/template.tt, $swap, $out);

### Alloy uses the same syntax and configuration as Template::Toolkit
HTML::Template::Expr style usage
my $t = Template::Alloy->new(
filename => my/template.ht,
path => [/path/to/templates],
);

my $swap = {
key1 => val1,
key2 => val2,
code => sub { 42 },
hash => {a => b},
};

$t->param($swap);

# print to STDOUT (errors die)
$t->output(print_to => *STDOUT);

# process into a variable
my $out = $t->output;

### Alloy can also use the same syntax and configuration as HTML::Template
Text::Tmpl style usage
my $t = Template::Alloy->new;

my $swap = {
key1 => val1,
key2 => val2,
code => sub { 42 },
hash => {a => b},
};

$t->set_delimiters(#[, ]#);
$t->set_strip(0);
$t->set_values($swap);
$t->set_dir(/path/to/templates);

my $out = $t->parse_file(my/template.tmpl);

my $str = "Foo #[echo $key1]# Bar";
my $out = $t->parse_string($str);


### Alloy uses the same syntax and configuration as Text::Tmpl
Velocity (VTL) style usage
my $t = Template::Alloy->new;

my $swap = {
key1 => val1,
key2 => val2,
code => sub { 42 },
hash => {a => b},
};

my $out = $t->merge(my/template.vtl, $swap);

my $str = "#set($foo 1 + 3) ($foo) ($bar) ($!baz)";
my $out = $t->merge($str, $swap);

Template::Alloy 1.004 Screenshot

Advertisements

Template::Alloy 1.004 Keywords

Bookmark Template::Alloy 1.004

Hyperlink code:
Link for forum:

Template::Alloy 1.004 Copyright

WareSeeker periodically updates pricing and software information of Template::Alloy 1.004 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::Alloy 1.004 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
Template::Alloy::TT Perl module contains a Template::Toolkit role. Free Download
Template::Alloy::Parse is a Perl module with common parsing role for creating AST from templates. Free Download
Template::Alloy::VMethod is a Perl module with VMethod role. Free Download
Template::Alloy::Operator is a Perl module that provides the regexes necessary for Template::Alloy::Parse to parse operators. Free Download
Template Lite is a smaller, faster alternative to the Smarty template engine. Free Download
Template::Recall is a "Reverse callback" templating system. Free Download
Template::Plugin::NoFollow is a TT filter to add rel="nofollow" to all HTML links. Free Download
MAT is a C++ mathematical template class library. Free Download