Tag <CFINCLUDE>
Lets you embed references to pages in CFML. You can embed cfinclude tags recursively.
For an additional method of encapsulating CFML
Body
This tag can't have a body.
Example
<cfinclude [runonce="boolean"] template="string">
This tag is also supported within cfscript
<cfscript> include [boolean expression]; </cfscript>
Attributes
The attributes for this tag are fixed. Except for the following attributes no other attributes are allowed.
Name | Type | Required | Description |
---|---|---|---|
runonce | boolean | No | if set to true, the given template is only included once within the current request. |
template | string | Yes | A logical path to an existing page. |