It would be super handy if I could precompile slim templates using the rails asset pipeline. I was hoping to stick my templates in app/assets/html and serve them up that way.
Here's what I've got so far:
# config/initializers/slim.rb
Rails.application.assets.register_engine('.slim', Slim::Template)
# config/application.rb
config.assets.paths << "#{Rails.root}/app/assets/html"
config.assets.register_mime_type('text/html', '.html')
Running rake assets:precompile reads the .html.slim files in app/assets/html but it doesn't compile them and the output file still has the .slim extension.
Is there a way to make this work?