Bill Moseley <[email protected]> writes:

> On Sun, Apr 26, 2009 at 10:42:40AM -0700, Ask Bjørn Hansen wrote:
>> I thought "semi-colon is optional at the end of the line" was a feature.  
>>  :-)
>
> It's a feature when you leave it off by mistake and it's not a
> problem...

No, it isn't a feature.
A semicolon is not optional at the end of the line.

> But, what would you expect from this?
>
>>> [%
>>>    '<div class="login">';
>>>    PROCESS login_form
>>>    '</div>';
>>> %]

For TT2's parser, this is equivalent to:

<div class="login">
[%- PROCESS login_form '</div>' %]

Indeed, the parser _should_ complain about the '</div>' which is not a
correct attribute for PROCESS.

Should be filed under "another quirk of the TT2 parser".  I'd guess it
is not too easy to fix, i.e. without the TT3 parser....
-- 
Cheers,
haj



_______________________________________________
templates mailing list
[email protected]
http://mail.template-toolkit.org/mailman/listinfo/templates

Reply via email to