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

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

Serving Software Downloads in 956 Categories, Downloaded 49.479.617 Times

Template::Alloy 1.004

  Date Added: January 27, 2010  |  Visits: 778

Template::Alloy

Report Broken Link
Printer Friendly Version


Product Homepage
Download (86 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/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);.

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
USER REVIEWS
More Reviews or Write Review


TEMPLATE::ALLOY RELATED
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  -  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  
Libraries  -  Sub::Regex 0.02
Sub::Regex is a Perl module to create synonymous subroutines. SYNOPSIS use Sub::Regex; sub /look(s|ing)?_for/ ($){ foobar blah blah } look_for(Amanda); looks_for(Amanda); looking_for(Amanda); lOoKiNg_fOr(Amanda); Sub::Regex is a...
2.05 KB  
Libraries  -  DAEMon Raco Libraries 0.3
DAEMon Raco Libraries (DRLibs) is a collection of useful functions, objects, and routines for C++. Whats New in This Release: - This release adds new libraries to manage object lists: doublelist.dr.h, simplelist.dr.h, and sortedlist.dr.h..
28.67 KB  
NEW DOWNLOADS IN PROGRAMMING, LIBRARIES
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  -  Math::GMPf 0.29
Math::GMPf - perl interface to the GMP library's floating point (mpf) functions.
30.72 KB  
Programming  -  Net::Wire10 1.08
Net::Wire10 is a Pure Perl connector that talks to Sphinx, MySQL and Drizzle servers. Net::Wire10 implements the low-level network protocol, alias the MySQL wire protocol version 10, necessary for talking to one of the aforementioned...
30.72 KB  
Programming  -  logilab-common 0.56.2
a bunch of modules providing low level functionnalities shared among some python projects devel Please note that some of the modules have some extra dependencies. For instance, logilab.common.db will require a db-api 2.0 compliant...
174.08 KB  
Programming  -  OpenSSL for linux 1.0.0a
The OpenSSL Project is a collaborative effort to develop a robust, commercial-grade, full-featured, and Open Source toolkit implementing the Secure Sockets Layer (SSL v2/v3) and Transport Layer Security (TLS v1) protocols as well as a...
3.83 MB  
Libraries  -  wolfSSL 4.0.0
The wolfSSL embedded SSL/TLS library is a lightweight SSL library written in ANSI standard C and targeted for embedded and RTOS environments - primarily because of its small size, speed, and feature set. It is commonly used in standard operating...
3.88 MB  
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