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

2004-05-14 Thread Simon Wilcox
On Fri, 14 May 2004, Andy Wardley wrote: > You could do this instead: > >$input = $context->insert($input) unless $input =~ / > The $context->insert($filename) does the job of finding the file > in the INCLUDE_PATH and returning the content. Darn you and super-flexible templating system. H

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

2004-05-14 Thread Andy Wardley
Simon Wilcox wrote: > I am pleased to attach a patch that generates a search path list and > passes it to XMLin by introspecting the provider's include path. You could do this instead: $input = $context->insert($input) unless $input =~ /insert($filename) does the job of finding the file in t

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

2004-05-14 Thread Simon Wilcox
On Thu, 13 May 2004, Kenny Gatdula wrote: > Try setting the SearchPath for XML::Simple. [% USE xml = XML::Simple( > 'menu.xml' , {SearchPath => ['/var/www/site/data/'] }) %] Cool. Amazing what you learn. But I don't like having to specify the paths in my files, they're different on dev and prod