Cool tag, but I don't see how that is a real "replacement" for
cf_bodycontent.  The latter is designed to do more than just trap any
content generated between its begin and end but rather to process your
design specifications at the end of the tag.  Ultimately wouldn't my
index.cfm look something like:

<cfsavecontent variable="thispage">
        <cfswitch expression="#attributes.fuseaction#">
                <cfcase>....</cfcase>
        </cfswitch>
</cfsavecontent>

<cfinclude template="displayers/dsp_header.cfm">
<cfoutput>#thispage#</cfoutput>
<cfinclude template="displayers/dsp_footer.cfm">

??  This is over simplified but how is that really saving me anything?
Remember I am not against the tag, I think its cool and could use it in some
other places but I don't envision it replacing anything...let me know why
you think this for my own curiosities sake.

Mike

-----Original Message-----
From: Erki Esken [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 20, 2001 11:43 AM
To: Fusebox
Subject: CFSAVECONTENT in CF 5.0


Exciting news!

Something for us fuseboxers, replacement for <cf_bodycontent>. New in
5.0beta2:

--------------------------------------------
CFSAVECONTENT

The cfsavecontent tag saves everything in the body of the cfsavecontent
tag, including the results of evaluating expressions and executing custom
tags, in the specified variable. The cfsavecontent tag offers significant
performance improvements over custom tag solutions.

The following example uses a custom tag to generate a report and saves the
report in the variable content. It then replaces all instances of the word
report with the phrase MyCompany Quarterly Report and outputs the result.

<CFSaveContent variable="content">
   <CF_OutputBigReport>
</CFSaveContent>
<cfoutput>
   #Replace(content, "report", "MyCompany Quarterly Report", "all")#
</cfoutput>
--------------------------------------------
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to