PDA

View Full Version : SSI Includes inside .htm Perl Template Files


Bodmins
03-25-2003, 09:20 AM
Any ideas why

<!--#include virtual="/full pathname/filename.pl" -->

works on any of my normal html files, however, when I use it inside one of my Perl template files (generated using HTML::Template), it doesn't?

The template file is just a normal .htm file with a few <TMPL> tags in it. Does that really prevent <!--#include --> tags from working?

If so, are there any work arounds?

mellin
03-25-2003, 11:43 AM
Yes it does prevent it, because the template file is presumably formatted by another Perl script, therefore it doesn't go through Apache SSI parser.

Which means no <!--INCLUDE VIRTUAL=""--> elements are parsed, unless you build your script to handle them by itself.