AngularJS app JavaScript keyed by app name thing
/code/railsapp/app/assets/javascripts/thing/
AngularJS app templates keyed by app name thing
/code/railsapp/app/assets/templates/thing/
Shared AngularJS modules
/code/railsapp/lib/assets/javascripts/angular/
Our app is just a single app, so the
appName
references were not needed.Additionally, as credited elsewhere, you need
depend_on(f)
to keep the cache changing when your templates change:Finally, I'd love to see an example of this logic moved into a helper method :-)