Take a look:
expandPath(".")getBaseTemplatePath()getCurrentTemplatePath()CGI.CF_TEMPLATE_PATHCGI.PATH_TRANSLATEDCGI.SCRIPT_NAME
If you want a template stack trace, use this:
<cfset templateTrace = []>
<cfset tagTrace = createObject("java","java.lang.Exception").init().TagContext>
<cfloop array="#tagTrace#" index="tagInfo">
<cfset templateTrace.add(tagInfo.Template)>
</cfloop>
<cfdump var="#templateTrace#">
This will result in the export of all templates passed to this call.
source
share