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="">

cfsavecontent Tag Attribute Reference

Name Required Default Description
variable Yes Name ofthe variable in which to save the generated content
of the tag.

cfsavecontent Examples


Script Syntax

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

Tag Syntax

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

Fork me on GitHub