leshill/handlebars_assets — Issue #13: README should specify how to add assets path outside of Rails
Author: bloudermilk
Created: 2012-02-11 21:58:00+00:00
State: open

Hey guys,

Firstly, thanks for the time you've invested in this gem. It really simplified the process of getting Handlebars in a my Sinatra app.

I had one problem, though, and that was informing my `Sprockets::Environment` instance of the asset path supplied by this gem. I eventually got it working after delving into the source code, but it's quite a hack:

```ruby
handlebars_path = HandlebarsAssets::Handlebars.send(:assets_path).join("javascripts")
environment.append_path(handlebars_path)
```

How did you guys intend for the asset path to be included? Let me know and I'll be happy to update the README to include instructions and send a pull request.