tilt-pipeline allows you to easily construct rendering pipelines using tilt. For example, you can register the scss.erb pipeline so that your scss templates will be preprocessed by ERB before being processed by sass.
gem install tilt-pipeline
Source code is available on GitHub at github.com/jeremyevans/tilt-pipeline
If you are using the default template mapping, you just call
Tilt.pipeline with the pipeline extension:
This will register the
scss.erb extension, so that template files ending in
scss.erb will be processed by the
erb processor first, and the output of the
erb processor will be passed to the
You can also call
pipeline on any
and it will register that pipeline in that mapping instead of the default mapping.
Want it Upstream?
If you think this library would be useful to have in tilt itself, there is an open pull request that you can comment on: github.com/rtomayko/tilt/pull/259
Jeremy Evans <[email protected]>