Closed GSI closed 8 years ago
app.extensions
should do the trick.
That said, it does make sense to expose that at extensions
in both environment, so I will add that going forward
Ah, I see, this is a problem with the Sprockets environment, not Middleman's.
I've exposed extensions
in config.
Works like a charm now. Thank you, Thomas.
Middleman 4.1.6 + middleman-sprockets (4.0.0.rc.2)
I am unsure if this is a bug or if I'm just misunderstanding something:
In foo.js.erb I have this:
var availabeLanguages = <%= extensions[:i18n].options.langs %>;
When opening http://0.0.0.0:4567/javascripts/foo.js I see this text:
How may I access
extensions
(orconfig
) in this context?