Here's one:

I'd like positional parameters to modules. It would make calling a module so much more 
concise. And I'd like that to extend to CF's built in tags too. For example:

<cfinclude "mytag.cfm">  instead of <cfinclude template="mytag.cfm">
<cfparam "action", "display"> instead of <cfparam name="action" default="display">

It could be easily implemented by passing an "attributes" array with the values in the 
order they were passed. It would be helpful to have a helper tag to use in the module 
to bind them to variables like so:
<cfattributes "firstvarname", "secondvarname", "thirdvarname", "fourthvarname">
-or-
<cfattributes "firstvarname,secondvarname,thirdvarname,fourthvarname">

This would be used to match up arguments by position. Of course they could still be 
specified the old way by name as well.

====================================
And while we're at it, I often have dozens of one variable outputs that are made too 
wordy by the syntax: <cfoutput>#var#</cfoutput>. I'd like to see an alternate syntax: 
<cfoutput value="#var#"> or even better using position parameters: <cfoutput "#var#">

Of course this could be written as a custom tag:
<cfmyoutput value="#var#">

<cfoutput>#evaluate(attributes.value)#</cfoutput>

But the point it to have dozens of these in a page, and that would slow it down too 
much.


---------------------------------------------------------------------------
Peter Theobald, Chief Technology Officer
LiquidStreaming http://www.liquidstreaming.com
[EMAIL PROTECTED]
Phone 1.212.545.1232 x204 Fax 1.212.545.0938

------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to