Thanks Charles, those are some excellent suggestions - I never thought about
using "filter"!!

Thanks Again!
-Chris

>> -----Original Message-----
>> From: [EMAIL PROTECTED]
>> [mailto:html-template-users-admin@;lists.sourceforge.net]On Behalf Of
>> Charles K. Clarkson
>> Sent: Saturday, November 09, 2002 11:08 PM
>> To: 'HTML::Template List'
>> Subject: RE: [htmltmpl] HTML::Template and SSI
>>
>>
>> Chris Faust asked:
>>
>> : In short I have the following include
>> : <!--#include virtual="/cgi-bin/counter.pl" -->
>> :
>> : Works fine when called from a HTML page but when called
>> : within a HTML::Template tmpl file its never executed by
>> : apache (meaning you see the include tag in the source of
>> : the page).
>> :
>> : Is there something else I need to do?
>>
>>     There is no built-in programmatic mechanism to call
>> Apache to process the output of a CGI program for SSI
>> output. Your solution might be to use "filter" to change
>> the SSI command to a tmpl_include. In the filter you can
>> do a substitution to let h::t handle the include. This
>> one is untried:
>>
>> s|<!--#include virtual="([^"]*)"\s*-->|<tmpl_include name="$1">|g;
>>
>>     You'll have to do recursive calls if the included
>> file is another .shtml file.
>>
>>
>>
>>     Another solution might be to edit your source
>> file(s) to contain both types of tags:
>>
>> <!--#include virtual="/cgi-bin/counter.pl" -->
>> <!-- tmpl_include name="/cgi-bin/counter.pl" -->
>>
>>     The extra commands will look like comments to the
>> opposite processor. h::t will then do the recursive
>> stuff for included .shtml files which should have
>> similar comments in them. This method has the drawback
>> of showing your SSI commands to the world and having to
>> explain the extra comments to your web designers.
>>
>>
>> HTH,
>>
>> Charles K. Clarkson
>> --
>> Head Bottle Washer,
>> Clarkson Energy Homes, Inc.
>> Mobile Home Specialists.
>> 254 968-8328
>>
>>
>>
>>
>>
>> -------------------------------------------------------
>> This sf.net email is sponsored by:ThinkGeek
>> Welcome to geek heaven.
>> http://thinkgeek.com/sf
>> _______________________________________________
>> Html-template-users mailing list
>> [EMAIL PROTECTED]
>> https://lists.sourceforge.net/lists/listinfo/html-template-users
>>




-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Html-template-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/html-template-users

Reply via email to