Simon Wilcox wrote:
My file structure looks like this:
/var/www/site/html (html docs)
/var/www/site/lib (TT templates)
/var/www/site/data (xml files)
In my template I have
[% USE XML::Simple( 'data/menu.xml' ) %]
This works fine in ttree when run from /var/www/site but blows up when
using Apache::Template (which we often do for rapid development, and burn
using ttree for publication).
Try setting the SearchPath for XML::Simple. [% USE xml = XML::Simple(
'menu.xml' , {SearchPath => ['/var/www/site/data/'] }) %]
Hope that helps,
Kenny
_______________________________________________
templates mailing list
[EMAIL PROTECTED]
http://lists.template-toolkit.org/mailman/listinfo/templates