D1 => D2 The default start_tag and end_tag of Template::Toolkit
Hi, In Dancer 1 when I enabled Template::Toolkit it worked immediately as the start_tag and end_tag were <% and %> respectively as the default of the simple template. Do I see correctly that this has changed and now the defaults are [% and %] ? If yes, is this on purpose or is this a bug? Gabor
On Wed, 10 Dec 2014 20:26:05 +0200 Gabor Szabo <gabor@szabgab.com> wrote:
Do I see correctly that this has changed and now the defaults are [% and %] ?
If yes, is this on purpose or is this a bug?
Purpose, as [% %] are the typical tags used by the majority of TT users, and many people were confused by the default of <% %> instead in D1. Perhaps there should be a comment in generated templates, or perhaps the default for the simple engine should also be [% %]?
On Wed, Dec 10, 2014 at 9:06 PM, David Precious <davidp@preshweb.co.uk> wrote:
On Wed, 10 Dec 2014 20:26:05 +0200 Gabor Szabo <gabor@szabgab.com> wrote:
Do I see correctly that this has changed and now the defaults are [% and %] ?
If yes, is this on purpose or is this a bug?
Purpose, as [% %] are the typical tags used by the majority of TT users, and many people were confused by the default of <% %> instead in D1.
Perhaps there should be a comment in generated templates, or perhaps the default for the simple engine should also be [% %]?
Having a comment in the config.yml might be good, but an explanation in the migration document is imho needed. I've already sent a pull-request with that, this e-mail was just to clarify that this change is indeed intentional. regards Gabor
participants (2)
-
David Precious -
Gabor Szabo