Status/Resolution/Reason: Closed/Deferred/EnhancementRequired
Reporter/Name(from Bugbase): Adam Cameron / Adam Cameron (Adam Cameron)
Created: 10/01/2013
Components: Language
Versions: 10.0
Failure Type: Enhancement Request
Found In Build/Fixed In Build: Final /
Priority/Frequency: Trivial / Unknown
Locale/System: English / Platforms All
Vote Count: 17
From http://cfmlblog.adamcameron.me/2013/10/suggested-revision-to-savecontent.html
G'day:
I like that <cfsavecontent> is available in CFScript now, but I dislike the clunky way it's been implemented.
The tag version is like this:
<cfsavecontent variable="content">
<!--- stuff goes here --->
</cfsavecontent>
And the CFScript implemented is a fairly leaden transliteration of that:
savecontent variable="content" {
// stuff goes here
}
I'm sorry, but this:
variable="content"
is just rubbish.
The construct ought to be:
content = savecontent {
// stuff goes here
}
That would make more sense, yes?
--
Adam
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 3643125
External Customer Info:
External Company:
External Customer Name: Adam Cameron.
External Customer Email:
External Test Config: My Hardware and Environment details:
Attachments:
Comments: