[Petal] attributes question

Steve Purkis spurkis at mkdoc.com
Mon Jul 28 11:22:42 BST 2003


On Sunday, July 27, 2003, at 01:29  pm, Fergal Daly wrote:

> On Friday 25 July 2003 21:57, Evan Simpson wrote:
>> Jean-Michel Hiver wrote:
>>> As a side effect, it is true that Petal will consider anything that 
>>> is
>>> not defined or an empty string to be 'nothing'. I think this is 
>>> purely
>>> an implementation issue and not a fundamental violation of TAL.
>>
>> Hrm.  Does this mean that '<span petal:replace="myvarable">Misspelled
>> variable!</span>' will silently disappear?  This would be bad!
>
> Yes, this is what happens but this is a different issue. I think this 
> is what
> Steve Purkis' patch addressed.

Not quite - by default Petal dies if it can't resolve a variable[1].  
My patch actually _makes_ them silently disappear!  But it is 
optional...

-Steve

[1] well, actually Petal only dies if it can't resolve a variable that 
isn't in the top-level 'Petal::Hash' - ie: "$foo" won't die, "$foo/bar" 
will.



More information about the Petal mailing list