Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

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

Closed
lancejpollard opened this Issue · 0 comments

2 participants

@lancejpollard

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:

Tower.configure
  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
Something went wrong with that request. Please try again.