Disregarding whether it is a good idea or not , is there a way to set eval_perl => 1 in Template Toolkit for Dancer? It didn't seem to work in the app config.yml file, which I tried like so:
template: template_toolkit
engines:
template_toolkit:
start_tag: '[%'
stop_tag: '%]'
eval_perl: 1
Even better would be a way to enable it for just one template. For example, would something like
my $template = Template->new(
START_TAG => '[%',
STOP_TAG => '%]',
EVAL_PERL => 1
);fit in a route? How would $template work with respect to the normal 'template' keyword?
Thanks for any help!
Matt