Skip to content

Instantly share code, notes, and snippets.

@adamcameron
Created Jan 5, 2022
Embed
What would you like to do?
Demonstrating behaviour variation when getCurrentTemplatePath is called from file included in CFC vs CFM
component {
include "m.cfm";
}
<cfinclude template="m.cfm">
<cfscript>
function f() {
writeDump(getCurrentTemplatePath())
}
</cfscript>
<cfscript>
o = new C()
o.f()
</cfscript>
<cfinclude template="i.cfm">
<cfset f()>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment