This CFScript community project project will work, but after seeing how they are implemented <cfhtmlhead> I am compressing a bit.
But I would go with the spirit of what they do and write UDF, but I just as carefully imitate how <cfhtmlhead> will be implemented as possible:
<cffunction name="cfHtmlHead"> <cfhtmlhead attributecollection="arguments"> </cffunction>
(I would also buy it with the tag returntype / access / output / a <cfargument> etc.).
I support CFML.cfc for my coding, which fills in the blanks for older versions of ColdFusion that I run, which don't have much CFScript readiness, but it's just a lib function full of such UDFs. I do not implement separate CFCs that need to be created, and a method called a function equivalent to a tag has nothing to do with the way the tag is called. This is a confusing and poorly designed IMO.
Mileage is changing, obviously.
source share