0.0
Repository is archived
No release in over 3 years
Low commit activity in last 3 years
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.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

>= 2
 Project Readme

tilt-pipeline¶ ↑

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.

Installation¶ ↑

gem install tilt-pipeline

Source Code¶ ↑

Source code is available on GitHub at github.com/jeremyevans/tilt-pipeline

Examples¶ ↑

If you are using the default template mapping, you just call Tilt.pipeline with the pipeline extension:

Tilt.pipeline('scss.erb')

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 scss processor.

You can also call pipeline on any Tilt::Mapping:

mapping.pipeline('scss.erb')

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

License¶ ↑

MIT

Author¶ ↑

Jeremy Evans <code@jeremyevans.net>