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

CGI::Application::Plugin::AnyTemplate 0.18

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

CGI::Application::Plugin::AnyTemplate

Report Broken Link
Printer Friendly Version


Product Homepage
Download (18 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  
Business  -  QuikTrade Mobile 1.0
QuikTrade Mobile provides for the type of convenient usage of the QuikTrade Barter Management System that may be needed when away from the typical computer interface. It allows for the conducting of POS Transactions, Gift Card Transactions, Load...
307.2 KB  
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...
 
Networking  -  Multi-page Toolkit 2.6
Multi-page toolkitThis plugin is the ultimate companion for people who use the multi-page capabilities of wordpress. Easy to use fully integrated in to the wordpress visual editor (tinyMCE) (WordPress 2.5 and above) and simple to use options page...
10 KB  
NEW DOWNLOADS IN LINUX SOFTWARE, PROGRAMMING
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  
Linux Software  -  SLAX 6.0+
Slax is a modern, portable, small and fast Linux operating system with a modular approach and outstanding design. Despite its small size, Slax provides a wide collection of pre-installed software for daily use, including a well organized graphical...
190 KB  
Linux Software  -  GTK+ 2.5
GTK+, which stands for the GIMP Toolkit, is a library for creating graphical user interfaces for the X Window System. It is designed to be small, efficient, and flexible. GTK+ is written in C with a very object-oriented approach. Language bindings...
60 MB  
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