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 32.284.501 Times

Template::Simple 0.01

  Date Added: October 24, 2010  |  Visits: 595

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
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  
Libraries  -  JooReports 2.0.0
JOOReports (Java/OpenOffice Reports) is an open source solution for creating office documents and reports in Java, using OpenOffice.org. Its primary goal is making template composition easy. Templates are regular word processor documents,...
5 MB  
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 3.15.3
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