[Petal] Petal error messages

Fergal Daly fergald at gmail.com
Sat May 7 00:56:20 BST 2005


If you want to speed up Petal, you'll not have much luck with the TAL
stuff, that's close to optimal I think. The TALES stuff is what's slow
as it's interpretted at run time. See
http://search.cpan.org/~fdaly/Petal-CodePerl-0.06/ for something that
compiles all the expressions. I doubt it works against the current
version of Petal though,

F

On 5/7/05, Josh Narins <josh at narins.net> wrote:
> I'm not going to stop using Petal, but I have to admit the error
> messages leave a bit to be desired.
> 
> I can't even make too much out of the /tmp/petal_debug files.
> 
> Did someone previously mention dumping the value of a variable at a
> point, perhaps into html comments or something?
> 
> And, if I wrote a parser that was, say, twice as fast for Petal... um,
> could I get a job?
> 
> I might change it up a little, make it like petal:repeat="$a @array"
> where petal:repeat="$b %hash" would always imply $b would be looping
> through the keys of the hash.
> 
> :-D
> 
> 
>


More information about the Petal mailing list