30 May 2010 13:00:42 UTC
- Distribution: Dancer-Template-Alloy
- Module version: 1.02
- Source (raw)
- Browse (raw)
- How to Contribute
- Testers (1068 / 1 / 0)
- KwaliteeBus factor: 0
- % Coverage
- License: perl_5
- Activity24 month
- Download (12.63KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest versionDANIELP Daniel Pittman
Dancer::Template::Alloy - Template::Alloy wrapper for Dancer
This class is an interface between Dancer's template engine abstraction layer and the Template::Alloy module.
Template::Alloy is a high performance implementation of a template engine compatible with the standard Template engine, as well as several other template engines including HTML::Template::Expr, Text::Tmpl, and the Java Velocity template engine.
Why would you prefer this to the standard Template engine that Dancer ships in core? I am not about to advocate it here; our experience is that Template::Alloy provided a significant reduction in unintended behaviour in templates, but your millage may vary significantly.
In order to use this engine, use the template setting:
This can be done in your config.yml file or directly in your app code with the set keyword.
Note that by default, Dancer configures the Template::Alloy engine to use the standard Template::Toolkit [% and %] brackets; the Dancer default of <% %> brackets will require manual changes. This can be changed within your config file - for example:
template: alloy engines: alloy: START_TAG: '<%' STOP_TAG: '%>'
This module was written by Daniel Pittman.
This module is free software and is released under the same terms as Perl itself.
Module Install Instructions
To install Dancer::Template::Alloy, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell install Dancer::Template::Alloy
For more information on module installation, please visit the detailed CPAN module installation guide.