cfsavecontent

Saves the generated content of the cfsavecontent tag, including the results of evaluating expressions and executing custom tags, in the specified variable.

  <cfsavecontent variable="">

 savecontent variable="" {};

cfsavecontent Attribute Reference

variable string
Required

Name of the variable in which to save the generated content of the tag.

Examples
Sample code using the cfsavecontent tag

savecontent variable="myContent" {
 writeOutput("Somecontent.");
}

<cfsavecontent variable="myContent">
<cfoutput>Some content.</cfoutput>
</cfsavecontent>

Fork me on GitHub