wycats/rake-pipeline-web-filters — pull request #64 by ahx (2013-02-21 15:05:35+00:00)
Title: Allow passing options to the ChainedFilter via an Array

The ChainedFilter is really handy. I wanted to adjust the used filters a little, so this patch allows to pass options via an Array like:

```ruby
filter Web::Filters::ChainedFilter, {
types: {
erb: [Web::Filters::TiltFilter, {}, my_context],
haml: [Web::Filters::TiltFilter, {}, my_context],
coffee: CoffeeScriptFilter
}
}
```

I chose an Array to pass the options, because it's easy and resembles the filter syntax `filter MyClass, option1, option2`.

I am not using `#register` right now. You could also pass an Array to that method, but maybe we should change the register method to allow something like `register MyFilter, option1, option2`, ping me if you think that's a good idea.