[Petal] Petal 0.84 released

Jean-Michel Hiver jhiver at mkdoc.com
Mon Feb 10 16:45:01 GMT 2003


> | In this case, Petal processes the meta-template using the 'meta:'
> namespace,
> | replacing the 'xmlns:petal' attribute in the 'test' element, and both the
> | 'name' and 'petal:attributes' attributes in the 'input' element.  When
> | processing
> | the resulting template, Petal uses the usual petal: namespace.
> 
> Even though I've been using this technique for a week-or-so, I'm still
> amazed that this works. Elegant namespace support is cool (and rare-ish
> in Perl projects that I've encountered)!

I'm amazed myself. I never thought of Petal meta-templates... they're
obviously very well suited for this purpose.

Chris Croome who's working with me bugged me with namespace support.
He's really an XML geek and although I couldn't really see the point of
doing this namespace support business I did it anyways...

I guess he must have been sending sumbliminal 'namespace support',
'namespace support' noises towards me in the office :-)

Well, as it turns out he was right!


> The PI issue is the problem that I had encountered.
> 
> I didn't send it in as a PI error because:
> 1) I wasn't sure if this was proper behavior for Petal, so I figured I'd
> ask first.

Yes, you can use PIs in Petal. I call it the 'canonical' syntax. However
it's not TAL-compliant.

Personaly I would encourage everybody to use TAL compliant syntax.
However, TIMTOWDI.


> Anyway, I have a (very) little test script/file that works under 0.83,
> but not under 0.84. I've tried to emulate the testing conventions used
> in other Petal test scripts...

It'll all work in 0.85, which I'll release tonight.


Cheers,
-- 
Building a better web - http://www.mkdoc.com/
---------------------------------------------
Jean-Michel Hiver
jhiver at mkdoc.com  - +44 (0)114 255 8097
Homepage: http://www.webmatrix.net/



More information about the Petal mailing list