3 May 19:50
omit-tag -- Petal DOCUMENTATION inconsistency with TAL spec
From: Jonathan Vanasco <petal-list@...>
Subject: omit-tag -- Petal DOCUMENTATION inconsistency with TAL spec
Newsgroups: gmane.comp.lang.perl.modules.petal
Date: 2007-05-03 17:51:09 GMT
Subject: omit-tag -- Petal DOCUMENTATION inconsistency with TAL spec
Newsgroups: gmane.comp.lang.perl.modules.petal
Date: 2007-05-03 17:51:09 GMT
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.
RSS Feed