<cfinclude>

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

Usage

<cfinclude
    [runonce=boolean]
    template=string
    [cachedwithin=object]
>

This tag cannot have a body.

This tag is also supported within cfscript

Attributes

Attribute Description
runonce
(boolean, optional)

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

template
(string, required)

A logical path to an existing page.

cachedwithin
(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.

Examples

There are currently no examples for this tag.