Using Rails 3.2, you can make files in the asset pipeline use multiple preprocessors by appending multiple file extensions, thusly: index.css.scss.erb
I tried doing this with a view (index.html.slim.erb
) and it didn't seem to know what to do (more accurately, it just didn't find the view at all).
Does Rails really not pass views through Tilt? Is there another way I can make a view run through one preprocessor and then another?
(Context: I'm working on something that's intended to modify HTML fed in before being returned, so I'd want it to run after haml/slim/erb.)