Closed elyngved closed 10 years ago
I think the Tilt filter is enough. Adding so much code, just to not have to write require 'slim'
seems to complicate things unnecessarily.
I will defer to @wycats on this one.
Closing this as @wycats has not responded. I also agree with @ahx that this is a lot of code for little gain.
Tilt can be used to compile Slim templates just like any other Tilt-supported template, but it depends on the 'slim' gem in order to do so (which itself requires 'tilt'.) I simply made a SlimFilter class to be a subclass of TiltFilter, with 'slim' defined as it's sole external dependency.