Lets you embed references to pages in CFML. You can embed cfinclude tags recursively. For an additional method of encapsulating CFML

This tag cannot have a body.

This tag is also supported within <cfscript>

Attribute Description
boolean, optional

if set to true, the given template is only included once within the current request.

string, required

A logical path to an existing page.

object, optional

possible values are: String "request": If original content was created within the current request, cached content data isused. a timespan (created with function CreateTimeSpan): If original content date falls within the time span, cached content data isused.

To use cached data, the function must be called with the exact same arguments.



Format for Cfinclude

<cfinclude template="test.cfm">

See also