Hi Alan The code base I am working on needs to work on CF too though. I am trying to minimise conditionals based on the engine.
But cheers for the heads-up, anyhow. -- Adam On Jul 9, 9:01 am, Alan Williamson <[email protected]> wrote: > 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 > > ashttp://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
