Subject: | SWITCH and CASE Syntax in Docs/Pod |
Hi,
When testing my var like so (in 2.15, but the docs are the same in 2.18,
so reporting against that):
[% SWITCH page %]
[% CASE subscribe %]
[% INCLUDE base/menus/subscribe.tt %]
[% CASE messages %]
[% INCLUDE base/menus/messages.tt %]
[% CASE edituser %]
[% PROCESS base/menus/edituser.tt %]
[% CASE DEFAULT %]
Testing default. Page is: [% page %]
[% END %]
This doesn't work unless you change the CASE to quote the value, e.g. [%
CASE 'subscribe' %]
The docs/pod just show:
[% CASE val1 %]
If I am incorrect, apologies, but if the docs need a patch, just say so.
t/switch.t seems to have both syntaxes as well, so not sure.
Thanks,
Gavin.