I was trying to get a simple set working in a template earlier today,
and came across something that could reasonably be considered a bug in
the TT command parser.  I spoke to Leon on irc and he told me to post
it here.

Basically, I tried to do:

[% SET toptags = [ 'FOO', 'BAR', 'BAZ' ] %]

And it came back with a message about "invalid TAGS style %]", and
then a syntax error in my template.  It turns out that a loose regex
in Template::Parser, line 326, didn't like my variable containing the
word "tags".  When I renamed it, the problem went away.  This
behaviour should probably be documented somewhere...  Or maybe the
regex just needs a \b in front of it.

This is in TT 2.04, btw.  I've just had a quick look at the same
section in 2.05 and it appears to be the same.

-Dom

-- 
| Semantico: creators of major online resources          |
|       URL: http://www.semantico.com/                   |
|       Tel: +44 (1273) 722222                           |
|   Address: 33 Bond St., Brighton, Sussex, BN1 1RD, UK. |


Reply via email to