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.990.682 Times

Template::Simple 0.01

  Date Added: October 24, 2010  |  Visits: 574

Template::Simple

Report Broken Link
Printer Friendly Version


Product Homepage
Download (72 downloads)

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..

Requirements: No special requirements
Platforms: Linux
Keyword: Data Libraries Programming Rendering Row Simple Template Templatesimple Value
Users rating: 0/10

License: Freeware Size: 15.36 KB
TEMPLATE::SIMPLE RELATED
Libraries  -  minihuff 1.0
minihuff is a data compression library with a simple new twist on Huffman coding. Instead of storing the frequency analysis for some set of data with the data itself, minihuff enables the creation of a static frequency table to be stored at both...
 
Blog  -  SimplyBibTeX 0.1.2
SimplyBibTeX is a PHP application that renders BibTeX through a simple template system. It can output XHTML, RSS and Atom and is easily extensible. There is no need for a database as it runs on the plain BibTeX files. All contextual data is stored...
20.48 KB  
Libraries  -  PEAR HTML_Template_IT 1.2.1
PEAR HTML_Template_IT is a simple template API. The Isotemplate API is somewhat tricky for a beginner although it is the best one you can build. template::parse() [phplib template = Isotemplate] requests you to name a source and a target where...
20.48 KB  
Libraries  -  PLIB 1.8.5 RC1
PLIB project includes sound effects, music, a complete 3D engine, font rendering, a simple Windowing library, a game scripting language, a GUI, networking, 3D math library and a collection of handy utility functions. All are 100% portable across...
788.48 KB  
Libraries  -  Template::Plugin::Data::HTMLDumper 0.10
Template::Plugin::Data::HTMLDumper is a template toolkit plugin interface to Data::HTMLDumper. SYNOPSIS [% USE Data.HTMLDumper %] [% Data.HTMLDumper.dump(myvar) %] A very simple Template Toolkit Plugin Interface to the Data::HTMLDumper...
2.05 KB  
Network & Internet  -  mod_spin 1.1.5
mod_spin is an Apache module that provides a simple template language with data replacement capabilities, persistent application and session tracking, database connection pooling, dynamic linking of applications into Apache as shared libraries,...
83.97 KB  
Utilities  -  Net-SNMP 5.4.1
Net-SNMP project provides tools and libraries relating to the Simple Network Management Protocol. Installation: The `configure shell script attempts to guess correct values for various system-dependent variables used during compilation. It...
3.81 MB  
Libraries  -  deimos 1.3
deimos project consists of some platform independent libraries. The deimos project provides some platform independent libraries which contain a reference memory allocator (garbage collector planned), virtual filesystem (Unix sockets, HTTP, etc),...
 
Libraries  -  Apache::App::Gallery::Simple 1.09
Apache::App::Gallery::Simple is an elegant and fast filesystem-based image galleries. SYNOPSIS SetHandler perl-script PerlHandler Apache::App::Gallery::Simple; PerlSetVar GalleryRoot /vacation/images PerlSetVar...
24.58 KB  
Libraries  -  ULDBF 0.0.8
ULBC project is a set of ANSI C Libraries to add typical data types like Strings, Queues, Stacks, Hashes, Trees, etc with its correspondent API to manage them. This initiative is the base for bigger tools that will use ULBC as its general...
68.61 KB  
NEW DOWNLOADS IN PROGRAMMING, LIBRARIES
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 freedesktop.org, 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  -  wolfSSL 3.12.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...
2.73 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