tracker issue : CF-3040614

select a category, or use search below
(searches all categories and all time range)
Title:

Bug 81189:(Watson Migration Closure)Many tags like CFMAIL and CFOUTPUT allow for large pieces of content to be constructed

| View in Tracker

Status/Resolution/Reason: Closed/Deferred/

Reporter/Name(from Bugbase): Eric Twilegar / Eric Twilegar (twillerror)

Created: 12/15/2009

Components: Language, CFSCRIPT

Versions: 9.0

Failure Type: Unspecified

Found In Build/Fixed In Build: 0000 /

Priority/Frequency: Minor / Unknown

Locale/System: English / Win All

Vote Count: 0

Problem:

Many tags like CFMAIL and CFOUTPUT allow for large pieces of content to be constructed. This is much nicer than the typically language constructors that require...

myVar = "my string\n";
myVar += "myString2";

For HTML output this becomes impossible and most of the time we would revert to straight CFMs or tag based CFCs. The more CFCs the better. However, cfscript provides nicer sytnax for the rest...can we not combine the best of both worlds :)

Maybe start and end with something ridiculous...

myOutput = {{{\<table>   <tr>Hello #employee.name#</tr></table>\}}};

I think you get the idea. It would be super cool new syntax no one else has...templates inside of javascript like code...
Method:


Result:

Feature request.In cfscript support multiline text like python.mySQL = """select *                     from users u                      join user_groups ug ON ....                  """;Or add support for something like.query ( name = "myQuery" ) {select * from users;};I love the ability to have readable SQL. ORM is not going to cut it for a lot of our stuff.

----------------------------- Additional Watson Details -----------------------------

Watson Bug ID:	3040614

External Customer Info:
External Company:  
External Customer Name: Eric Twilegar
External Customer Email: 3D9A02F5446CCE0A992015D5
External Test Config: 12/15/2009

Attachments:

Comments: