> Dan Horne wrote: > > Hi all > > > > I wish to include a template within another template. However, the > > template name to be included is determined at run time. I've tried: > > > > <TMPL_INCLUDE NAME=SUB_CONTENT> > > > > but I get "Cannot open included file SUB_CONTENT : file not found" > > > > I tried > > > > <TMPL_INCLUDE NAME=<TMPL_VAR NAME=SUB_CONTENT>> > > > > but that doesn't parse (as I expected). > > > > Is there a way to do this? > > Not in the way that you want to do it. That would, in essence > require H::T to do two passes when parsing which it doesn't do. > What you would have to do is process the first template (whose > name is determined at run time) and keep the output in a scalar. > Then load this scalar into the second, outer template.
Excellent suggestion.. the other way would be to use a filter (HTML::Template docs for more details...) ------------------------------------------------------- This SF.Net email is sponsored by OSTG. Have you noticed the changes on Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now, one more big change to announce. We are now OSTG- Open Source Technology Group. Come see the changes on the new OSTG site. www.ostg.com _______________________________________________ Html-template-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/html-template-users