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 14986 Nov 15, 2002, 3:05 AM
Thread Re: [jaspercram] include a filename which is stored in a variable
yogi 14817 Nov 15, 2002, 3:18 AM
Post Re: [yogi] include a filename which is stored in a variable
jaspercram 14699 Nov 15, 2002, 3:25 AM
Post Re: [jaspercram] include a filename which is stored in a variable
Paul 14712 Nov 15, 2002, 4:23 AM
Thread Re: [jaspercram] include a filename which is stored in a variable
jaspercram 14701 Nov 15, 2002, 5:18 AM
Thread Re: [jaspercram] include a filename which is stored in a variable
Alex 14701 Nov 15, 2002, 10:38 AM
Thread Re: [Alex] include a filename which is stored in a variable
jaspercram 14667 Nov 18, 2002, 12:25 AM
Thread Re: [jaspercram] include a filename which is stored in a variable
carfac 14614 Nov 21, 2002, 10:46 AM
Thread Re: [carfac] include a filename which is stored in a variable
jaspercram 14589 Nov 21, 2002, 1:16 PM
Post Re: [jaspercram] include a filename which is stored in a variable
carfac 14534 Nov 21, 2002, 1:38 PM
Thread Re: [Alex] include a filename which is stored in a variable
Peter544 14318 May 17, 2003, 4:49 PM
Thread Re: [Peter544] include a filename which is stored in a variable
yogi 14242 May 17, 2003, 11:24 PM
Post Post deleted by Peter544
Peter544 14127 May 18, 2003, 5:37 PM
Thread Re: [yogi] include a filename which is stored in a variable
Peter544 14253 May 19, 2003, 9:47 PM
Thread Re: [Peter544] include a filename which is stored in a variable
Andy 14192 May 20, 2003, 1:25 AM
Thread Re: [Andy] include a filename which is stored in a variable
vicos2 13976 Jun 28, 2003, 6:46 PM
Thread Re: [vicos2] include a filename which is stored in a variable
Alex 14023 Jun 30, 2003, 11:44 AM
Post Re: [Alex] include a filename which is stored in a variable
jai 13141 Feb 28, 2006, 11:25 PM