Skip to content

Instantly share code, notes, and snippets.

@HeroicEric
Created September 8, 2011 17:24
Show Gist options
  • Save HeroicEric/1203997 to your computer and use it in GitHub Desktop.
Save HeroicEric/1203997 to your computer and use it in GitHub Desktop.
HAML Equivalent?
<script type="text/javascript">
//<![CDATA[
var variant_options = new VariantOptions(
<%== @product.variant_options_hash.to_json %>,
<%== Spree::Config[:allow_backorders] %>
);
//]]>
</script>
@HeroicEric
Copy link
Author

:javascript
  var variant_options = new VariantOptions(
    #{@product.variant_options_hash.to_json},
    #{Spree::Config[:allow_backorders]}
  );

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment