pyrocms / lex

A lightweight template parser used by PyroCMS.
110 stars 31 forks source link

Failure with two tags in conditions #13

Closed brenjt closed 7 years ago

brenjt commented 10 years ago

When doing something like:

{{if {product:method} == {product:other_method}}}

Two errors happen. First this is the output

{{('value') == NULL}}

This happens no matter what tag I place on the right side of the condition.

I also get a parsing error at the end due to the three brackets }}} I have to place a space just after the first one to fix it. } }}

Message: Uncaught exception 'ParsingException' with message 'You have a syntax error in your Lex tags. The offending code: if ('0.0000' == {NULL null=__cond_str_0f1f45abe3baee01d4035bcf47a14aab): }