Yep, this did the trick. Thanks Dan
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Michael Peters Sent: Monday, 9 August 2004 12:26 p.m. Cc: [EMAIL PROTECTED] Subject: Re: [htmltmpl] Including templates where the name is dtermined at run time 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. HTH -- Michael Peters Developer Plus Three, LP ------------------------------------------------------- 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 ------------------------------------------------------- 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