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

CGI::Application::Plugin::AnyTemplate 0.18

Company: Michael Graham
Date Added: September 19, 2013  |  Visits: 475

CGI::Application::Plugin::AnyTemplate

Report Broken Link
Printer Friendly Version


Product Homepage
Download (35 downloads)



CGI::Application::Plugin::AnyTemplate allows you to use any supported Perl templating system using a single consistent interface.<br /><br />Currently supported templating systems include HTML::Template, HTML::Template::Expr, HTML::Template::Pluggable, Template::Toolkit and Petal.<br /><br />You can access any of these templating systems using the same interface. In this way, you can use the same code and switch templating systems on the fly.<br /><br />This approach has many uses. For instance, it can be useful in migrating your application from one templating system to another.<br />Embedded Components<br /><br />In addition to template abstraction, AnyTemplate also provides a embedded component mechanism. For instance, you might include a header component at the top of every page and a footer component at the bottom of every page.<br /><br />These components are actually full CGI::Application run modes, and can do anything normal run mode can do, including processing form parameters and filling in their own templates. See below under "EMBEDDED COMPONENTS" for details.<br />Multiple Named Template Configurations<br /><br />You can set up multiple named template configurations and select between them at run time.<br /><br /> sub cgiapp_init {<br /> my $self = shift;<br /><br /> # Can't use Template::Toolkit any more -<br /> # The boss wants everything has to be XML,<br /> # so we switch to Petal<br /><br /> # Set old-style template options (legacy scripts)<br /> $self->template('oldstyle')->config(<br /> default_type => 'TemplateToolkit',<br /> TemplateToolkit => {<br /> POST_CHOMP => 1,<br /> }<br /> );<br /> # Set new-style template options as default<br /> $self->template->config(<br /> default_type => 'Petal',<br /> auto_add_template_extension => 0,<br /> );<br /> }<br /><br /> sub old_style_runmode {<br /> my $self = shift;<br /><br /> # ...<br /><br /> # use TemplateToolkit to fill template edit_user.tmpl<br /> $self->template('oldstyle')->fill('edit_user', %params);<br /><br /> }<br /><br /> sub new_style_runmode {<br /> my $self = shift;<br /><br /> # ...<br /><br /> # use Petal to fill template edit_user.xhml<br /> $self->template->fill('edit_user.xhtml', %params);<br /><br /> }<br /><br />Flexible Syntax<br /><br />The syntax is pretty flexible. Pick a style that's most comfortable for you.<br />CGI::Application::Plugin::TT style syntax<br /><br /> $self->template->process('edit_user', %params);<br /><br />or (with slightly less typing):<br /><br /> $self->template->fill('edit_user', %params);<br /><br />CGI::Application load_tmpl style syntax<br /><br /> my $template = $self->template->load('edit_user');<br /> $template->param('foo' => 'bar');<br /> $template->output;<br /><br />Verbose syntax (for complete control)<br /><br /> my $template = $self->template('named_config')->load(<br /> file => 'edit_user'<br /> type => 'TemplateToolkit'<br /> add_include_paths => '.',<br /> );<br /><br /> $template->param('foo' => 'bar');<br /> $template->output;<br /><br />See also below under "CHANGING THE NAME OF THE 'template' METHOD".

Requirements: No special requirements
Platforms: *nix, Linux
Keyword: Component Default Type Instance Options Params Petal Shift Style Supported Syntax System Systems Template Templategtparam Foo Templatetoolkit Templating
Users rating: 0/10

License: Freeware Size: 71.68 KB
USER REVIEWS
More Reviews or Write Review


CGI::APPLICATION::PLUGIN::ANYTEMPLATE RELATED
Modules  -  Gravatar (and userpics) 1.2
This plugin allows you to generate a gravatar URL complete with rating, size, default, and border options. See the documentation for syntax and usage: http://www.gravatar.com/implement.php#section_2_2. It also shows LiveJournal userpics in...
20.48 KB  
Libraries  -  TAdvSmoothCapacityBar 1.0.1.2
TAdvSmoothCapacityBar is a reliable component designed to enable developers to create iTunes style capacity bars. for WindowsAll
 
Utilities  -  Kouvert 0.3
Kouvert is a graphical fstab editor with complete options lists for all filesystems supported by Linux and other Unix-like systems.
204.8 KB  
Programming  -  OMake 0.9.8.5
OMake is a build system with a similar style and syntax to GNU make but with many additional features, including support for large projects spanning multiple directories, default configuration files simplifying the standard compilation tasks,...
2.8 MB  
Graphic Animators  -  Flash flip book template of Flower 1.0
Warm colors, bright lighting and pinky petal, warm and beautiful contents compose this template pack. You can't find any bright colors or strong contrast here; all you can see are these warm branches. The album must be outstanding and eyes...
2.35 MB  
Programming  -  Wobzilla 0.3.1
Wobzilla is component framework for building document or form-orientend GUI-Frontends for information-systems. Its implemented in JavaScript and uses a XSLT-like definition-language. It runs on Mozilla (Version 1.3 or higher).
2.28 MB  
Libraries  -  Params::Validate 0.88
Params::Validate is a Perl module to validate method/function parameters. SYNOPSIS use Params::Validate qw(:all); # takes named params (hash or hashref) sub foo { validate( @_, { foo => 1, # mandatory bar => 0, # optional } ); } #...
79.87 KB  
Modules  -  Default Search options in categories and Advanced 1.0
This Contribution will tell you how to adjust your files to allow you to change the default search criteria in the normal browse by category and the advanced search page.2 files need to be adjusted, instructions can be found in the attached zip...
 
Libraries  -  XML::Schema::Type::Simple 0.07
XML::Schema::Type::Simple is a base class for simple XML Schema datatypes. SYNOPSIS package XML::Schema::Type::whatever; use base qw( XML::Schema::Type::Simple ); use vars qw( @FACETS ); @FACETS = ( minLength => 10, maxLength => 30,...
143.36 KB  
Libraries  -  Petal 2.19
Petal is a Perl Template Attribute Language - TAL for Perl! SYNOPSIS in your Perl code: use Petal; my $template = new Petal (foo.xhtml); print $template->process (bar => BAZ); in foo.xhtml < html xmlns:tal="http://purl.org/petal/1.0/"...
84.99 KB  
NEW DOWNLOADS IN LINUX SOFTWARE, PROGRAMMING
Linux Software  -  EasyEDA PCB Designer for Linux 2.0.0
EasyEDA, a great web based EDA(Electronics Design Automation) tool, online PCB tool, online PCB software for electronics engineers, educators, students, makers and enthusiasts. Theres no need to install any software. Just open EasyEDA in any...
34.4 MB  
Linux Software  -  wpCache® WordPress HTTP Cache 1.9
wpCache® is a high-performance, distributed object, caching system application, generic in nature, but intended for use in speeding up dynamic web applications, by decreasing database load time. wpCache® decreases dramatically the page...
3.51 MB  
Linux Software  -  Polling Autodialer Software 3.4
ICTBroadcast Auto Dialer software has a survey campaign for telephone surveys and polls. This auto dialer software automatically dials a list of numbers and asks them a set of questions that they can respond to, by using their telephone keypad....
488 B  
Linux Software  -  Total Video Converter Mac Free 3.5.5
Total Video Converter Mac Free developed by EffectMatrix Ltd is the official legal version of Total Video Converter which was a globally recognized brand since 2006. Total Video Converter Mac Free is a free but powerful all-in-one video...
17.7 MB  
Linux Software  -  Skeith mod_log_sql Analyzer 2.10beta2
Skeith is a php based front end for analyzing logs for Apache using mod_log_sql.
47.5 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  -  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