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 (whic
* Simon Wilcox [2004/05/12 17:59]:
> 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 do
On Wed, 12 May 2004, darren chamberlain wrote:
> What do the permissions on /var/www/site/data look like?
drwxrwsr-x3 simonw staff4096 May 12 17:41 data
Looks ok to me. I forgot to mention, it works if I put in an absolute
path. Sorry for the partial story.
Simon.
--
"I'm not h
On Wed, 12 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 /v
Simon Wilcox <[EMAIL PROTECTED]> writes:
> 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 /v
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 Apa
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
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
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