inside a.cfm, it has code fragment:

<cfloop>
<cfinclude template="b.cfm">
</cfloop>


inside b.cfm, it has code fragment:

<cfoutput>#paintTable()#</cfoutput>

//etc...

<cffunction name="paintTable">
<cfoutput>call paint table function</cfoutput>
</ccfunction>

It will yield the following error:
coldfusion.runtime.CfJspPage$DynamicDuplicateFunct ionDefinitionException:
Routines cannot be declared more than once.


I think the duplicated function problem is due to the <cfloop>.
The caller of paintTable() is in the same file. So if I
declare the function in other file, it should solve the problem,
but I don't know how to call it.


Please advise. thanks!!