On Tue, Jan 15, 2002 at 05:40:38PM +0530, Philip S Tellis wrote: > 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.
Yes, you can do it through a filter. I do something similar with a filter. > Does HTML::Template include > included files before or after passing the template to a filter? Filters are called after each file is read. This goes for included files too. >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. What happens a a 'post-include filter' adds more '<tmpl_include ...>' directives? -Gyepi -- Gyepi Sam Palm Digital Media Group --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
