Prancer::Template::TemplateToolkit
This template engine plugin requires Template. If this plugin is configured but Template is not found your application will not start. To use this template engine plugin, set your configuration to something like this:
template: driver: Prancer::Template::TemplateToolkit options: template_dir: /srv/www/site/templates encoding: utf8 start_tag: "<%" end_tag: "%>"
Then your templates should be placed under /srv/www/site/templates as configured.
/srv/www/site/templates
REQUIRED Sets the directory to look for templates. If this path is not configured then your application will not start.
Sets the start tag for your templates. The default is <%.
<%
Sets the end tag for your templates. The default is %>.
%>
Sets the encoding of your templates. The default is utf8.
utf8
Names a template to add to the top of all templates.
Names a template to be added to the bottom of all templates.
Sets the number of templates to cache. The default is cache all of them if the cache is enabled.
Sets the directory to cache templates. The default is to not cache templates.
To install Prancer, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Prancer
CPAN shell
perl -MCPAN -e shell install Prancer
For more information on module installation, please visit the detailed CPAN module installation guide.