cfinclude

Overview ColdFusion Open BlueDragon Lucee

Embeds references to CFML pages in CFML. You can embed cfinclude tags recursively. For another way to encapsulate CFML, see cfmodule. (A CFML page was formerly sometimes called a CFML template or a template.)

Attributes

Name Required Type Default Description
4
cachedwithin No 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.
page No If no TEMPLATE, then the PAGE can be used, which is the URL for include
10
4
runonce No Boolean false If set to true, template is processed only once in a given request
template Yes String A logical path to a CFML page.