ColdFusion - How to get current template path

GetCurrentTemplatePath() - get the current template path who call this function

GetCurrentTemplatePath.cfm


<!DOCTYPE html">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>GetCurrentTemplatePath function example: how to get the current template path who call this function</title>
</head>

<body>
<h2 style="color:Crimson">GetCurrentTemplatePath Function Example</h2>

<cfset CurrentTemplatePath=GetCurrentTemplatePath()>

<cfoutput>
<b>Current Template Path:</b> #CurrentTemplatePath#
</cfoutput>
</body>
</html>






More ColdFusion examples