CFLib.org – Common Function Library Project

Include(template)

Last updated August 03, 2005

author

Raymond Camden

Version: 2 | Requires: CF6 | Library: CFMLLib

Description:
Mimics the cfinclude tag.

Return Values:
Does not return a value.

Example:

<cfscript>
include("date.cfm");
</cfscript>

Parameters:

Name Description Required
template The template to include. Yes

Full UDF Source:

<!---
 Mimics the cfinclude tag.
 Changed output to true so the included doc could display something.
 
 @param template      The template to include. (Required)
 @return Does not return a value. 
 @author Raymond Camden (ray@camdenfamily.com) 
 @version 2, August 3, 2005 
--->
<cffunction name="include" output="true" returnType="void">
    <cfargument name="template" type="string" required="true">
    <cfinclude template="#template#">
</cffunction>

Search CFLib.org


Latest Additions

Raymond Camden added
QueryDeleteRows
November 04, 2017

Leigh added
nullPad
May 11, 2016

Raymond Camden added
stripHTML
May 10, 2016

Kevin Cotton added
date2ExcelDate
May 05, 2016

Raymond Camden added
CapFirst
April 25, 2016

Created by Raymond Camden / Design by Justin Johnson