ColdFusion 9 simple enhancement suppose to be fixed, never implemented

One of the things that I hate the most is writing code to get around short falls in the language.

When the enhancement is to reduce a small amount of code I see it as a good thing, Adobe had agreed and it was suppose to have been implemented in the pre-release stages of development and yet it has never made it.

The enhancement was with the cfhtmlhead tag, I opted for the likes of something like this.

<cfhtmlhead language="javascript">
. Javascript code to go here.
</cfhtmlhead>

The beauty about this would be that language could be any language that the browser knows about, Adobe thought it was a good idea and yet it seems that after it was flagged to be included it was eventually pulled.

The work around for this is to do the following.

<cfsavecontent variable="test">
. Javascript code to go here.
</cfsavecontent>
<cfhtmlhead text="#test#" />

So the question is which is better?

I know which one I would prefer.



  • Ben Nadel's Gravatar I happen to think that CFHtmlHead is an evil tag :) What I don't like about it is that it's output is implicit rather than explicit. As such, it makes things VERY hard to debug, especially when you are not expecting it.
    # Posted By Ben Nadel | 1/23/10 5:36 PM