Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 976 Categories, Downloaded 29.546.732 Times

Template::Alloy 1.004

  Date Added: January 27, 2010  |  Visits: 556


Report Broken Link
Printer Friendly Version

Product Homepage
Download (70 downloads)

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/, $swap) || die $t->error; # process into a variable my $out = ; $t->process(my/, $swap, $out); ### Alloy uses the same syntax and configuration as Template::Toolkit HTML::Template::Expr style usage my $t = Template::Alloy->new( filename => my/, 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);.

Requirements: No special requirements
Platforms: Linux
Keyword: Ht Hte Libraries Programming Stdout Sub Swap Templatealloy Tmpl Velocity
Users rating: 0/10

License: Freeware Size: 143.36 KB
More Reviews or Write Review

Libraries  -  Sub::PatMat 0.01
Sub::PatMat can call a version of subroutine depending on its arguments. SYNOPSIS use Sub::PatMat; # basics: sub fact : when($_[0] <= 1) { 1 } sub fact { my ($n) = @_; $n*fact($n-1) } print fact(6); # referring to things other than @_:...
14.34 KB  
Libraries  -  Sub::DeferredPartial 0.01
Sub::DeferredPartial is a deferred evaluation / partial application. SYNOPSIS use Sub::DeferredPartial def; $S = def sub : P1 P2 P3 { %_=@_; join , @_{qw(P1 P2 P3)} }; print $S->( P1 => 1, P2 => 2, P3 => 3 )->(); # 123 $A = $S->( P3 => 1...
5.12 KB  
Libraries  -  Adobe Source Libraries 1.0.29
The Adobe Source Libraries (ASL) are a collection of C++ libraries building foundation technology to allow the construction of commercial applications by assembling generic algorithms through declarative descriptions. Whats New in This Release:...
8.2 MB  
Libraries  -  GNU Classpath 0.95
GNU Classpath (essential libraries for Java) is a project to create free core class libraries for use with virtual machines and compilers for the Java programming language. GNU Classpath project includes all native methods and core classes...
6.5 MB  
Libraries  -  List::RewriteElements 0.09
List::RewriteElements is a Perl module that can create a new list by rewriting elements of a first list. SYNOPSIS use List::RewriteElements; Constructor Simplest case: Input from array, output to STDOUT. $lre =...
26.62 KB  
Libraries  -  Sub::Curry 0.8
Sub::Curry is a Perl module to create curried subroutines. SYNOPSIS use Sub::Curry; use Sub::Curry qw/ :CONST curry /; # Import spice constants # and the &curry function. #my $f1 = Sub::Curry::->new(&foo, 1, 2); # Same as below. my $f1 =...
6.14 KB  
Libraries  -  Sub::Slice::Manual 1.048
Sub::Slice::Manual is a Perl module with user guide for Sub::Slice. USING Sub::Slice Sub::Slice is a way of breaking down a long-running process and maintaining state across a stateless protocol. This allows the client to draw a progress bar...
27.65 KB  
Libraries  -  Sub::Timebound 1.01
Sub::Timebound is a Perl extension for timebound computations. SYNOPSIS use Sub::Timebound; sub fun { my $i = shift; if ($i =~ /7$/) { die "Simulated internal errorn"; } while ($i) { $i--; } return "All is well"; } my $x =...
4.1 KB  
Libraries  -  Sub::Assert 1.22
Sub::Assert - Design-by-contract like pre- and postconditions, etc. SYNOPSIS use Sub::Assert; sub squareroot { my $x = shift; return $x**0.5; } assert pre => $PARAM[0] >= 1, # for the sake of simplicity post => $VOID or $RETURN <=...
6.14 KB  
Libraries  -  Sub::Quotelike 0.03
Sub::Quotelike is a Perl module that allows to define quotelike functions. SYNOPSIS use Sub::Quotelike; sub myq () { my $s = shift; # Do something with $s... return $s; } sub myqq (") { my $s = shift; # Do something with $s......
4.1 KB  
Programming  -  FLEX-db Digital Asset Manager 3.0.9
FLEX-db - an enterprise Digital Asset Manager (DAM). It ingests and links metadata with files, creates thumbnails, and processes files using business rules. FLEX-db has a JSP client, Java app server for file input and output and an EJB metadata...
21.57 MB  
Programming  -  Libicom 0.9.0
The libicom library is a character based dynamicly linked library for Linux. It is used to remotely control the Icom IC-R8500 wide band receiver via an RS232 link. All call and return parameters to the control functions are character string based....
20.48 KB  
Programming  -  dotdesktop 0.3
Dotdesktop library provides ability to parse desktop entry file and access the information in a convenient way. Desktop entry file format is defined by, it is used to describe information about an application such as the name and...
327.68 KB  
Programming  -  Cedalion for Linux 0.2.6
Cedalion is a programming language that allows its users to add new abstractions and define (and use) internal DSLs. Its innovation is in the fact that it uses projectional editing to allow the new abstractions to have no syntactic limitations.
471.04 KB  
Programming  -  libyasl 0.2
Libyasl is a C++ class library to easily realize TCP/UDP/Multicast clientsand servers in IPv4 and IPv6 environments under GNU/Linux systems.
143.36 KB  
Libraries  -  EuGTK 4.8.9
Makes it easy to develop good- looking, fast, cross-platform programs that run on Linux, OS X, and Windows. Euphoria is a very fast interpreted/compiled language with straight-forward syntax. EuGTK allows programming in a clean, object-oriented...
10.68 MB  
Libraries  -  Linux User Group Library Manager 1.0
The LUG Library Manager is a project to help Linux User Groups start their own library. A LUG library is helpful to the community at large because it increases access to information, and gives everyone the opportunity to become more knowledgeable.
5.35 KB  
Libraries  -  Module::MakefilePL::Parse 0.12
Module::MakefilePL::Parse is a Perl module to parse required modules from Makefile.PL. SYNOPSIS use Module::MakefilePL::Parse; open $fh, Makefile.PL; $parser = Module::MakefilePL::Parse->new( join("", ) ); $info = $parser->required;...
8.19 KB  
Libraries  -  sqlpp 0.06
sqlpp Perl package is a SQL preprocessor. sqlpp is a conventional cpp-alike preprocessor taught to understand SQL ( PgSQL, in particular) syntax specificities. In addition to the standard #define/#ifdef/#else/#endif cohort, provides also...
10.24 KB  
Libraries  -  App::SimpleScan::Substitution::Line 2.02
App::SimpleScan::Substitution::Line is a line with optional fixed variable values. SYNOPSIS my $line = App::SimpleScan::Substitution::Line->new(" this "); # Use only this value when substituting " ". $line->fix(substituite =>...
54.27 KB