I guess I'm just thinking Template::Plugin::XML::Simple and
Template::Plugin::XML::XPath, which both come with the standard
Template-Toolkit package. I haven't actually done anything like this,
but that would be my first approach.

Jason

Buddy Burden wrote:
> Jason,
> 
> > What about using XML instead of a hash of hashes to 
> represent your tree?
> 
> Well, the files on disk _will_ be either XML or XML_ish_ 
> (currently I'm experimenting with Config::General as a simpler 
> alternative to full-blown XML).  The program will read in the 
> file and send the resulting structure to TT2.
> 
> > Then you could use XPath expressions to do node references 
> and even some
> > calculations. Just a thought... 
> 
> Well, I've thought about that a bit, but I guess I don't know 
> enough about how it works to know if it would work well 
> for this application.  Which CPAN module would you recommend 
> I investigate?

_______________________________________________
templates mailing list
[email protected]
http://lists.template-toolkit.org/mailman/listinfo/templates

Reply via email to