[Dancer-users] TT engines and template
Alberto Simoes
ambs at perl-hackers.net
Sun Jun 12 14:40:45 CEST 2011
On 12/06/2011 12:11, Andrew Solomon wrote:
> 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 => '%]'
> }
> };
Set template is raising an hook to restart the template server. Set
engines don't. This is a bug.
I can fix this special case, but I would prefer to use my patch about
hierarchical set.
Sukria? :)
Cheers
ambs
More information about the Dancer-users
mailing list