Lucee Tag Reference
Tag <CFSAVECONTENT>
Saves the generated content inside the tag body in a variable.
Body
Dieses Tag muss einen Body haben.
Beispiel
<cfsavecontent [append="boolean"] [trim="boolean"] variable="string"> </cfsavecontent>
Diese tag kann auch innerhalb von cfscript verwendet werden
<cfscript> savecontent [append="boolean"] [trim="boolean"] variable="string" { } </cfscript>
Attribute
Die Attribute für dieses Tag sind fest vorgegeben. Ausser den nachfolgend angegebenen Attributen dürfen keine weiteren verwendet werden.
| Name | Typ | Required | Beschreibung |
|---|---|---|---|
| append | boolean | No | if true, the saved content will be appended to an already existing variable instead of overwriting it. |
| trim | boolean | No | trim result |
| variable | string | Yes | The name of the variable in which to save the generated content inside the tag. |