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

Popular posts from this blog

c# - How to set Z index when using WPF DrawingContext? -

razor - Is this a bug in WebMatrix PageData? -

visual c++ - Using relative values in array sorting ( asm ) -