12 Jun
2011
12 Jun
'11
11:11 a.m.
I'm using TT and when I 'set engines' before 'set template' everything works, but if I have 'set template' first (as shown below), the start_tag and end_tag aren't recognized (it just prints [%/%] to the screen). This problem doesn't occur if the settings are in config.yml instead. Is it a bug, or am I misunderstanding these settings? (I'm running on Dancer version 1.3051) Andrew #!/usr/bin/perl use Dancer; set template => 'template_toolkit'; set engines => { template_toolkit => { start_tag => '[%', stop_tag => '%]' } }; Dancer->dance;