[Petal] Observations

Jean-Michel Hiver jhiver@mkdoc.com
Thu, 12 Sep 2002 15:17:08 +0100


> > For the ability to parse string templates rather than files, I have
> > looked into it and unfortunately using files is very structural. I don't
> > think I'll be able to implement this 'properly' with the current
> > architecture.
> > 
> > I could probably create a temp file and process from there... but it's very
> > bleurgh, thus I'm not sure that I want to do this. It's a shame that I
> > didn't foresee that... sorry :-(
> 
> Perhaps an item to add for v2.0 or whenever enough structural changes need 
> to happen to require a rewrite.

Yes, definitely. I'll stick with what I have for the moment. I want to
add limited support for XIncludes in the current version, maybe fix the
  bug if that's added in HTML::TreeBuilder, continue testing /
debbuging and then label it 1.0.

Then I'll start a new Petal based on SAX handlers. I plan to have the
Petal core take SAX events and maybe generate SAX events so that it's
possible to put it in a pipeline. But then I have to think about caching
as well. Well, it's all going to be quite challenging, and it might take
a while :-)


> > For the 'list of hashref' bug, I have made a test and it works fine.  I
> > added it to the test suite, you can amend it / run it as follow:
> > 
> > [jhiver@frogette Petal]$ perl t/022_Hashref_List.t 
> > 1..3
> > ok 1
> > ok 2
> > ok 3
> > [jhiver@frogette Petal]$ 
> > 
> > I'm going to do a minor Petal release now (0.71), with the added list of
> > hashrefs test and the updated docs.
> 
> Does this mean you fixed the bug that was causing my problem or that you 
> didn't find a bug and it's a problem on my end?

It means it worked fine for me. If all the tests pass for you, then the
problem is elsewhere.

Cheers,
-- 
IT'S TIME FOR A DIFFERENT KIND OF WEB
================================================================
  Jean-Michel Hiver - Software Director
  jhiver@mkdoc.com
  +44 (0)114 255 8097
================================================================
                                      VISIT HTTP://WWW.MKDOC.COM