On Mar 4, 2011, at 6:03 PM, villas wrote:
>
> On Mar 4, 10:22 pm, Thadeus Burgess <[email protected]> wrote:
>> I don't think you should have code included in a {{= block.
>
> +1 Explicit is better
>
> {{if abc:}}
> {{=xyz}}
> {{pass}}
>
> Yes, there are extra brackets, but no one's going to have a problem
> with that.
That would continue to work regardless.
Right now we have two rules, and it's hard to explain why.
{{=abc
abc = "123}}
...fails. But
{{abc = "123"
=abc}}
... is fine. And so is
{{abc = "123"
=abc
abc = "456"}}
{{pass
=abc
pass}}
is fine. But
{{=abc
pass}}
...is not.
That's a strange set of rules, if you ask me. And confusing, as we've already
seen, especially since the error message is not helpful.