Updates:
- Sprockets 3 doesn't seem to need me to inject JavascriptHelpers.
- Using
environment[file].to_sto fetch the compiled sources. - Everything in my app (templates and scripts) is inside an
app/folder which is my angular app, so I leave that path part out on the$templateCachekey - I'm only supporting slim templates because I only use slim, but it should fairly easy to add other template engines.
- The previous script broke on files like
course-link.directive.slim. We just remove the.slimextension now.