TemplateToolkit default tags are [% hi %]
In Dancer2 I had to configure these to get going:
template: "template_toolkit"
charset: UTF-8
engines:
template:
template_toolkit:
ENCODING: utf8
INCLUDE_PATH: 'views'
start_tag: '[%'
end_tag: '%]'
But then, the rendered template contained <% content %> in place of my tt. To get my code working, I changed my .tt files to use <% hi %> and changed the config tags:
start_tag: '<%'
end_tag: '%>'
Is there an easier way to use Template::Toolkit in Dancer2? Yes, I should use Dancer2's simple template.
Thanks
Rick