I suppose it's not possible yet, but for some instances it would be great to have some kind of "switch" block, like in PHP, which allows for a "default" output. We can use tal:condition, but (unless I missed it), there is no 'default' or 'else' possible.

It's easy enought to check if "errorcode" eq 'value1', and below if "errorcode" eq 'value2' etc, but the tal:condition for when errorcode ne 'value1' AND ne 'value2' AND ne 'value3' is rather cumbersome...

Just a 'nice to have' from my list... :)

PHPTAL mailing list

Reply via email to