On Tue, 15 Jan 2002, Stefan Svensson wrote:

> I need the ability to optionally include files from a HTML::Template,
> but I just found out that this is impossible. HTML::Template doesn't
> care about something like:
> 
> <TMPL_IF NAME="LOOPVAR">
> <TMPL_INCLUDE NAME="threaded_view.tmpl">
> </TMPL_IF>
> 
> But includes the threaded_view template anyway.

You may be able to do it through a filter.  Does HTML::Template include 
included files before or after passing the template to a filter?  It's 
probably logical to do the including first and filtering later, but 
maybe a pre-include filter and then post-include filter would be good.

Just thinking in text.

-- 
You have a message from the operator.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to