For me, cfsavecontent looks more natural. The result is easier to see and more 
visual space is given to the action performed than the language performing the 
action.

Steve

Steve Bryant.
Bryant Web Consulting LLC
http://www.BryantWebConsulting.com/
http://steve.coldfusionjournal.com/ 

> In running through a shopping cart codebase (cartweaver), I decided to 
> change a chunk of 40 or so CFSET operations into a single 
> CFSAVECONTENT block. As this was for building an XML packet, it looked 
> logical to me. No real savings in code size but to me it just looked 
> cleaner and looked like 'less' operations.
> 
> Question: What is your preference in such situations. Multiple CFSETs 
> with each adding a new line of XML to the variable or a block of 
> CFSAVECONTENT with the entire block wrapped in a CFOUTPUT? 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:220658
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to