omit-tag -- Petal DOCUMENTATION inconsistency with TAL spec

Jonathan Vanasco <[email protected]> Thu, 3 May 2007 13:51:09 -0400
Newsgroups gmane.comp.lang.perl.modules.petal
Message-ID <[email protected]>
I just learned this on another TAL list...

regarding omit-tag, the TAL spec states

	If the expression evaluates to a true value, *** or there is no  
expression ***

ie: no conditional/statement is interpreted as true

whereas the Petal implementation states:

	If you want to ALWAYS remove a tag, you can use omit-tag="string:1"

The petal behavior should be

	If you want to ALWAYS remove a tag, you should use omit-tag=""

It looks as if this was implemented in v1.06  -- but the docs were  
never updated to reflect the correct behavior.