Effective October 27, 2012, online and email support for FuseSource products will move to Red Hat support channels. For more information, please see the JIRA Migration to Red Hat FAQ.
As of October 27th, please open all new issues in the Red Hat Customer Portal .
Issue Details (XML | Word | Printable)

Key: SCALATE-22
Type: Improvement Improvement
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Unassigned
Reporter: Hiram Chirino
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Forge: Scalate

Switch the attribute defining syntax to be "@" ~ opt("import") ~ ("val"|"var" )

Created: 03/Feb/10 05:46 PM   Updated: 04/Feb/10 02:47 PM
Component/s: scalate-core
Affects Version/s: 1.0
Fix Version/s: 1.0


 Description  « Hide
For both ssp and scaml

 All   Comments   Change History      Sort Order: Ascending order - Click to sort in descending order
James Strachan added a comment - 04/Feb/10 06:56 AM
BTW one possible downside is the attribute declaration will look like a normal bit of code...
<%@ val foo : String = "blah" %>

versus

<% val foo : String = "blah" %>

I guess the @ is the biggie.

BTW if we declare a var, we should maybe make sure we call context.setAttribute("foo", foo) at the end of the template to output the new value back to the context


Hiram Chirino added a comment - 04/Feb/10 02:43 PM
yeah.. @ is the biggy.
similar to how in ruby @foo and foo are 2 different variables. For me, that's ok.

As for outputing the variable back.. I think that's a good idea. Will create a new issue for it.


Hiram Chirino added a comment - 04/Feb/10 02:47 PM
opened SCALATE-23

Hiram Chirino added a comment - 04/Feb/10 02:47 PM
the syntax change is now in.