Subject: | Breaking template-toolkit with ANYCASE |
Dancer sets ANYCASE config to 1 automatically for Template-Toolkit.
1: This is not documented (at least I can't find it documented anywhere)
2: Reverting this is not documented, and I couldn't find a way to do that
3: This breaks code for example when iterating resultsets from DBIx:Class
Let's say you are passing variable rs containing DBIx:Class resultset
and you want to iterate thorough it:
[% WHILE (row = rs.next) %]
... do something ...
[% END %]
Does not work, because ANYCASE makes Template-Toolkit to confuse rs's
next function to NEXT virtual function.
Please, don't mess with the defaults behind the scenes (you may add a
vote from me to defaulting to regular tt-tags as well :).