Skip to content

Instantly share code, notes, and snippets.

@pisi
Created March 25, 2010 10:33
Show Gist options
  • Save pisi/343409 to your computer and use it in GitHub Desktop.
Save pisi/343409 to your computer and use it in GitHub Desktop.
@view= 'Something'
-location= 'Some_location'
:javascript
var a ='#{location}';
var a ='#{@view}';
<script type='text/javascript'>
//<![CDATA[
var a ='Some_location';
var b ='Something';
//]]>
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment