wycats/rake-pipeline-web-filters — pull request #51 by twinturbo (2012-10-19 13:38:39+00:00)
Title: Add :compiler_proc option to HandlebarsFilter

`compiler_proc` is called with the source. The `compiler_proc` returns the source by default. You can specify `compiler_proc` if you want to preprocess the source before it hits `wrapper_proc`. `compiler_proc` and `wrapper_proc` can be set in coordination to do Handlebars precompilation. Here's an example.

```ruby
# how to precompile handlebars templates
handlebars :wrapper_proc => proc { |source| "Ember.Handlebars.template(#{source);" },
:compiler_proc => proc { |template| MyCompiler.compile(template); }
```

I've also updated the docs in this PR.