Gossamer Forum
Home : Gossamer Threads Inc. : Discussion :

include a filename which is stored in a variable

Quote Reply
include a filename which is stored in a variable
Hi,

I am not sure where to post questions about general GT software modules. Please redirect me if this is the wrong location...

I would like to be able to do something like this
Code:
<%set filename = GenerateFilename('some parameter')%>
<%include $filename%>

If I understand the code correctly, the include files are included during compile time (not during runtime). I would guess that this construction does not allow variable includes. Is that correct? Is there another way to do something like this using the current software or is there a plan to add this feature?

If not, I would like to add this feature myself (if it is at all possible). Can someone give me some hints how to do this?

Thanks, Jasper

http://www.bookings.org
Subject Author Views Date
Thread include a filename which is stored in a variable jaspercram 14991 Nov 15, 2002, 3:05 AM
Thread Re: [jaspercram] include a filename which is stored in a variable
yogi 14821 Nov 15, 2002, 3:18 AM
Post Re: [yogi] include a filename which is stored in a variable
jaspercram 14703 Nov 15, 2002, 3:25 AM
Post Re: [jaspercram] include a filename which is stored in a variable
Paul 14716 Nov 15, 2002, 4:23 AM
Thread Re: [jaspercram] include a filename which is stored in a variable
jaspercram 14705 Nov 15, 2002, 5:18 AM
Thread Re: [jaspercram] include a filename which is stored in a variable
Alex 14705 Nov 15, 2002, 10:38 AM
Thread Re: [Alex] include a filename which is stored in a variable
jaspercram 14671 Nov 18, 2002, 12:25 AM
Thread Re: [jaspercram] include a filename which is stored in a variable
carfac 14618 Nov 21, 2002, 10:46 AM
Thread Re: [carfac] include a filename which is stored in a variable
jaspercram 14593 Nov 21, 2002, 1:16 PM
Post Re: [jaspercram] include a filename which is stored in a variable
carfac 14538 Nov 21, 2002, 1:38 PM
Thread Re: [Alex] include a filename which is stored in a variable
Peter544 14322 May 17, 2003, 4:49 PM
Thread Re: [Peter544] include a filename which is stored in a variable
yogi 14246 May 17, 2003, 11:24 PM
Post Post deleted by Peter544
Peter544 14131 May 18, 2003, 5:37 PM
Thread Re: [yogi] include a filename which is stored in a variable
Peter544 14257 May 19, 2003, 9:47 PM
Thread Re: [Peter544] include a filename which is stored in a variable
Andy 14196 May 20, 2003, 1:25 AM
Thread Re: [Andy] include a filename which is stored in a variable
vicos2 13980 Jun 28, 2003, 6:46 PM
Thread Re: [vicos2] include a filename which is stored in a variable
Alex 14027 Jun 30, 2003, 11:44 AM
Post Re: [Alex] include a filename which is stored in a variable
jai 13145 Feb 28, 2006, 11:25 PM