Hello,

While using template toolkit to generate dynamic web pages I've noticed I'm unable to include templates inside other templates.
This is my current setup:

apachedir: d:/apache2

cgidir: $apachedir/cgi-bin
I have one cgi script, called web.pl here. Apache2 is configured to call web.pl on any ttml file accessed through the browser.

webroot: $apachedir/htdocs
I have one template html file here, index.ttml

index.ttml tries to include system.ttml ([% INCLUDE system.ttml %]). It doesn't matter whether I put system.ttml inside $webroot or $cgidir. In both cases, template toolkit is unable to find this file. I tried to modify INCLUDE_PATH while initializing the template object, but without success. As default behaviour is to include at least current directory, I assumed either $cgidir or $webroot would have been included but it seems not. It can be an issue with win32 directory names ('d:/') as the ':' character would clash with INCLUDE_PATH grammar which consider it as a separator.
Anyway, any help or pointers to fix this particular issue would be great.

Thanks,
AMIAUX BenoƮt

_______________________________________________
templates mailing list
[email protected]
http://lists.template-toolkit.org/mailman/listinfo/templates

Reply via email to