[Templates] Apache::Template & plugin path problems

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

From: Simon Wilcox
Subject: [Templates] Apache::Template & plugin path problems
Date: 16:59 on 12 May 2004
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).

I've set an include path using TT2IncludePath so that it should look 
relative to /var/www/site but I get an error:

[Wed May 12 17:56:54 2004] [error] access to 
/var/www/site/html/index.html failed for 192.168.112.82, reason: 
plugin error - File does not exist: data/menu.xml at 
/usr/local/lib/perl5/site_perl/5.8.2/i686-linux/Template/Plugin/XML/Simple.pm 
line 47

Any ideas what I'm doing wrong here ?

Simon.

        -- 
        "Twang him into a tree!"
 


_______________________________________________
templates mailing list
templates@xxxxxxxxxxxxxxxx.xxx
http://lists.template-toolkit.org/mailman/listinfo/templates

[Templates] Apache::Template & plugin path problems
Simon Wilcox 16:59 on 12 May 2004

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

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