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?


                -- Buddy

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

Reply via email to