Adam there is a much cleaner way of doing this

  http://www.openbluedragon.org/manual/?/cfmlmanipulation

In the meantime, I will look at this and see what the story is.


Adam Cameron wrote:
G'day.
I've just raised this as 
http://code.google.com/p/openbluedragon/issues/detail?id=250:

See this code:

<cfsetting enablecfoutputonly="true">
<cfset CF = "cf">
<cfset CRLF = chr(13)&  chr(10)>
<cfsavecontent variable="sCfml">
        <cfoutput><#CF#set foo="bar">#CRLF#</cfoutput>
        <cfoutput><#CF#output>##foo##</#CF#output></cfoutput>
</cfsavecontent>
<cffile action="write" file="#expandPath('./')#runtimeCodeCfml.cfm"
output="#sCfml#">
<cfinclude template="./runtimeCodeCfml.cfm">
<cffile action="delete" file="#expandPath('./')#runtimeCodeCfml.cfm">

On CF8 this - correctly - creates the CFML file, executes it, tidies
up after itself.

--
Open BlueDragon Public Mailing List
http://www.openbluedragon.org/   http://twitter.com/OpenBlueDragon
online manual: http://www.openbluedragon.org/manual/

mailing list - http://groups.google.com/group/openbd?hl=en

Reply via email to