Railo 4.2 Reference
Choose a tag:

Tag <CFINCLUDE>

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

Body

Dieses Tag darf keinen Body haben.

Beispiel

	<cfinclude
		[cachedwithin="object"]
		[runonce="boolean"]
		template="string">
	
Diese tag kann auch innerhalb von cfscript verwendet werden
	<cfscript>
		include [boolean expression];
	</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
cachedwithin any 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. 
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.