Re: [Templates] Apache::Template & plugin path problems

[prev] [thread] [next] [Date index for 2004/05/14]

From: Kenny Gatdula
Subject: Re: [Templates] Apache::Template & plugin path problems
Date: 03:05 on 14 May 2004
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
templates@xxxxxxxxxxxxxxxx.xxx
http://lists.template-toolkit.org/mailman/listinfo/templates

Re: [Templates] Apache::Template & plugin path problems
darren chamberlain 17:08 on 12 May 2004

Re: [Templates] Apache::Template & plugin path problems
Kenny Gatdula 03:05 on 14 May 2004

Generated at 08:55 on 15 Mar 2005 by mariachi v0.52