Updates:
- Sprockets 3 doesn't seem to need me to inject JavascriptHelpers.
- Using
environment[file].to_s
to 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$templateCache
key - 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.slim
extension now.