Dancer::Template::TemplateFlute - Template::Flute wrapper for Dancer
Version 0.0061
This class is an interface between Dancer's template engine abstraction layer and the Template::Flute module.
In order to use this engine, use the template setting:
template: template_flute
The default template extension is ".html".
Each layout needs a specification file and a template file. To embed the content of your current view into the layout, put the following into your specification file, e.g. views/layouts/main.xml:
<specification> <value name="content" id="content" op="hook"/> </specification>
This replaces the contents of the following block in your HTML template, e.g. views/layouts/main.html:
<div id="content"> Your content </div>
Iterators can be specified explicitly in the configuration file as below.
engines: template_flute: iterators: fruits: class: JSON file: fruits.json
Filter options and classes can be specified in the configuration file as below.
engines: template_flute: filters: currency: options: int_curr_symbol: "$" image: class: "Flowers::Filters::Image"
Dancer::Template::TemplateFlute includes a form plugin Dancer::Plugin::Form, which supports Template::Flute forms.
Returns default template extension.
Renders template TEMPLATE with values from TOKENS.
Dancer, Template::Flute
Stefan Hornburg (Racke), <racke@linuxia.de>
Please report any bugs or feature requests to bug-template-flute at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Template-Flute.
bug-template-flute at rt.cpan.org
You can find documentation for this module with the perldoc command.
perldoc Template::Flute
You can also look for information at:
RT: CPAN's request tracker
http://rt.cpan.org/NoAuth/Bugs.html?Dist=Dancer-Template-TemplateFlute
AnnoCPAN: Annotated CPAN documentation
http://annocpan.org/dist/Dancer-Template-TemplateFlute
CPAN Ratings
http://cpanratings.perl.org/d/Dancer-Template-TemplateFlute
Search CPAN
http://search.cpan.org/dist/Dancer-Template-TemplateFlute/
Copyright 2011-2013 Stefan Hornburg (Racke) <racke@linuxia.de>.
This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.
See http://dev.perl.org/licenses/ for more information.
To install Dancer::Template::TemplateFlute, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Dancer::Template::TemplateFlute
CPAN shell
perl -MCPAN -e shell install Dancer::Template::TemplateFlute
For more information on module installation, please visit the detailed CPAN module installation guide.