maccman / sprockets-commonjs

Adds CommonJS support to Sprockets
178 stars 66 forks source link

can now have a custom namespace in the JS file #29

Closed bmuller closed 10 years ago

bmuller commented 10 years ago

Sometimes you don't want to use "require" due to conflicts - this allows you to set:

Sprockets::CommonJS.default_namespace = "this.different_require"

so that you can use "different_require" in the javascript too.

bmuller commented 10 years ago

This is a fairly small change - any chance of getting it merged? Thanks!

valverde commented 10 years ago

+1

bsheldon commented 10 years ago

+1

bmuller commented 10 years ago

Thanks! Really happy to see this merged!

bmuller commented 9 years ago

Though I see it's in master now - any chance of this finally getting released? Perhaps a new minor version?