dojo - scaml interpolation in html attributes -
i have this:
-@ var id:string %div{:dojotype => 'dojo.data.itemfilereadstore', :jstype => 'store', :url => "/path/to/resource?id=#{id}"}
i hoping variable interpolation work here, puts #{id}
html. tried:
%div{:url => 'path/to/resource?id='+id}
and doesn't compile. right way this?
the correct syntax is:
%div{:url => {"/path/to/resource?id="+id}}
Comments
Post a Comment