[Templates] loop.first, loop.last
Andy Wardley
abw@wardley.org
Sun, 11 Jun 2006 09:11:42 +0100
Birgit Kellner wrote:
> thanks, but that's not the problem. I'm calling the module with the
> "anycase" option enabled.
Hi Birgit,
The problem is the with the anycase option set, TT gets confused between
the '.last' in 'loop.last' and the 'LAST' keyword. I wasn't aware of
the problem until you mentioned it, but it does make sense.
Unfortunately the design of the parser in TT2 is such that it can't be
fixed easily, if at all. That's one of the reasons we totally
re-designed the parser for TT3, although that doesn't help you now.
The only thing I can suggest is to disable the anycase option or not use
loop.last :-(
Sorry about that. If it's any consolation I'm kicking myself for it
right now.
A