[Dancer-users] TT engines and template
Andrew Solomon
andrew at illywhacker.net
Sun Jun 12 13:11:30 CEST 2011
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;
More information about the Dancer-users
mailing list