NAME
Prancer::Template::TemplateToolkit
SYNOPSIS
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.
OPTIONS
- template_dir
-
REQUIRED Sets the directory to look for templates. If this path is not configured then your application will not start.
- start_tag
-
Sets the start tag for your templates. The default is
<%
. - end_tag
-
Sets the end tag for your templates. The default is
%>
. - encoding
-
Sets the encoding of your templates. The default is
utf8
. - pre_process
-
Names a template to add to the top of all templates.
- post_process
-
Names a template to be added to the bottom of all templates.
- cache_size
-
Sets the number of templates to cache. The default is cache all of them if the cache is enabled.
- cache_dir
-
Sets the directory to cache templates. The default is to not cache templates.