If you can write a template file and then do variable substitution,
that'll probably be easier, since you won't have to escape all the
CFML markup.  Otherwise, you've pretty much got it.

cheers,
barneyb

On 5/9/07, Richard Cooper <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> I'd like to create some CF code dynamically and then writting it to file.
>
> I was thinking of doing something like this:
>
>         <cfoutput>
>         <cfsavecontent variable="myCode">
>                 #chr(60)#cfinvoke component="/cfcfolder/_cfc-tracker" 
> method="getTracker" returnvariable="getTracker"#chr(62)#
>                                 #chr(60)#cfinvokeargument name="DSN" 
> value="#REQUEST.theDatabase#"#chr(62)#
>                                 #chr(60)#cfinvokeargument name="IPadd" 
> value="#CGI.REMOTE_ADDRESS#"#chr(62)#
>                 #chr(60)#/cfinvoke#chr(62)#
>         </cfsavecontent>
>         </cfoutput>
>
> What would be a better method as I'm sure I'm over complicating things?
> Thanks,
>
> Richard
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Create Web Applications With ColdFusion MX7 & Flex 2. 
Build powerful, scalable RIAs. Free Trial
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJS 

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:277549
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to