CF9 wishlist item: expand language

Similar to my last wish list item, this one is kind of minor. It might be a lot of work for the CF engineers to setup (not sure), and there are already ways to do this, but I'd just like it to be a little simpler. What I would like is to have an easier way to create new CF tags and functions.

I know we already have custom tags and UDFs, but those need to be imported and/or placed in the correct spot for each application. What I would like is to have two specific folders in your CF root where you could place code for custom tags and functions, and then for every application on your server, you can just use them like a normal CF tag or function, with no extra importing, and no (no underscore).

I also realize that you can do some of this with mappings, but again that's extra work, and it doesn't work in some situations. I know I'm being nit picky, but I really think this would be a popular feature, and I know I for one would love it! :)

Related Blog Entries

Comments
I don't think you're going to get it. Between cfimport, custom tags, udfs, this.mapping[] and this.customTagPaths and being able to install/invoke java libraries we have everything we need. this.mapping[] and this.customTagPaths are godsend IMHO.

I understand you don't want the underscore in <cf_whatever>, but I think it's a good idea to distinguish between Adobe's tag and some custom tag.
# Posted By Todd Rafferty | 1/1/08 12:30 PM
personally, I would like to see some cf tags that could be run inside of cfscript (cfabort, cflocation, etc..)
# Posted By dave | 1/1/08 2:21 PM
you can already do this if you have access to the server. Look in the
C:\ColdFusion8\wwwroot\WEB-INF\cftags folder.

You can drop a file in there and call it directly.
i.e., write a hello.cfm file, and you can then call it as <cfhello>

This is undocumented, and probably unsupported, and most likely not recommended, but it works!
# Posted By Morgan Kelsey | 1/2/08 4:58 AM
@Morgan,

Yeah, I knew about that too. But the undocument/unsupported part scares me away. :)
# Posted By Jake Munson | 1/2/08 10:14 AM
I do that with some of the common ones like cfabort.. where I make a general utilities cfc but it's a pita, it would be nice is you could just put it in like

<cfscript>
if(url.id neq 0) {
cflocation = "index.cfm";
}
</cfscript>
# Posted By dave | 1/2/08 2:44 PM
BlogCFC was created by Raymond Camden. This blog is running version 5.9. Contact Blog Owner