Actually you can only evaluate expressions, not whole chunks of cfscript such as loops, functions, etc.
What's wrong with cfincluding them? Also BTW instead of using cffile why not simply use cfsavecontent and cfinclude? Perhaps you might consider cfincluding the CF templates and caching the result for a given period of time? Regards, Matthew Walker Electric Sheep Web http://www.electricsheep.co.nz/ ----- Original Message ----- From: "Andre Mohamed" <[EMAIL PROTECTED]> To: "CF-Talk" <[EMAIL PROTECTED]> Sent: Friday, June 20, 2003 10:52 PM Subject: RE: Parse cfm templates stored in a variable? > There is no alternative but to "include" the file. > > However, if the code is all cfscript, it would technically be possible > to "evaluate" the whole lot at run time. > > Andr� > > -----Original Message----- > From: Peter Mayer [mailto:[EMAIL PROTECTED] > Sent: 20 June 2003 11:15 > To: CF-Talk > Subject: Parse cfm templates stored in a variable? > > Hello! > > I am reading files using cffile and storing them in a application > variable > (because they are very often accessed). > > If the file is a cfm template I would like to "execute" it - is there a > simple way to do that? > > The only solution I've seen so far would be to save the application > variable to a file and than do a cfinclude with that temporary file. > > Best regards, > > Peter > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Signup for the Fusion Authority news alert and keep up with the latest news in ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

