Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Add ability to auto-require files/modules in every file (_, Ember.get, etc.) #259

lancejpollard opened this Issue Sep 1, 2012 · 0 comments


None yet
2 participants

lancejpollard commented Sep 1, 2012

Instead of having to write this at the top of every file:

_     = Tower._
get  = Ember.get
set  = Ember.set
# ...

We can add a config option to auto-include these in the generated output in ./public/javascripts, such as:

  autoRequire: """
  _     = Tower._
  get  = Ember.get
  set  = Ember.set
  # ...

This could also be part of some sort of "banner".

This would eliminate the need for setting things like _ globally (I'm pretty sure).

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