[Petal] 'Else' without using the ugly syntax
Steve Purkis
spurkis at mkdoc.com
Sat Dec 20 10:18:44 GMT 2003
On Friday, December 19, 2003, at 11:46 am, Jean-Michel Hiver wrote:
>> This works, and is even nice to see. However, is there any way to
>> create 'else' statements with the TAL syntax? I wasn't able to
>> figure that out from the documentation.
>
> There is no way of doing 'else' with the TAL syntax.
You can do it with Petal::Utils, but it's all contained within one tag:
http://search.cpan.org/~spurkis/Petal-Utils-0.04/lib/Petal/
Utils.pm#:logic
-Steve
More information about the Petal
mailing list