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/
I ran into a gotcha with this implementation.
😡 The regular expression was clobbered when compiled from HAML > HTML > CoffeeScript > JavaScript. 😡
The solution is to change the expression from a regex literal to a function.
Now, the regular expression isn't sent through all the compilers.