[dancer-users] dancer template_toolkit eval_perl config option???

Matthew Polly mpolly at hotmail.com
Thu Jan 3 07:12:31 GMT 2013


Happy New Year Dancers,
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_toolkitengines:  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 likemy $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 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.preshweb.co.uk/pipermail/dancer-users/attachments/20130103/ae46d4e6/attachment.htm>


More information about the dancer-users mailing list