README.md in handlebars_assets-0.4.0 vs README.md in handlebars_assets-0.4.1

- old
+ new

@@ -26,11 +26,20 @@ Load `handlebars_assets` in your `Gemfile` gem 'handlebars_assets' +Add the `HandlebarsAssets.path` to your `Sprockets::Environment` instance. This +lets Sprockets know where the Handlebars JavaScript files are and is required +for the next steps to work. + env = Sprockets::Environment.new + + require 'handlebars_assets' + env.append_path HandlebarsAssets.path + + # Compiling your Javascript templates in the Rails asset pipeline Require `handlebars.runtime.js` in your Javascript manifest (i.e. `application.js`) //= require handlebars.runtime @@ -95,12 +104,10 @@ contacts/ _form.hbs todos/ _form.hbs -## TODO document Sinatra setup - # Thanks This gem is standing on the shoulders of giants. Thank you Yehuda Katz (@wycats) for [handlebars.js](https://github.com/wycats/handlebars.js) and lots of other code I use every day. @@ -121,9 +128,10 @@ * Les Hill (@leshill) # Contributors -* Matt Burke (@spraints) : execjs support -* (@kendagriff) : 1.8.7 compatibility -* Thorben Schröder (@walski) : 3.1 asset group for precompile -* Erwan Barrier (@erwanb) : Support for plain sprockets +* Matt Burke (@spraints) : execjs support +* (@kendagriff) : 1.8.7 compatibility +* Thorben Schröder (@walski) : 3.1 asset group for precompile +* Erwan Barrier (@erwanb) : Support for plain sprockets +* Brendan Loudermilk (@bloudermilk) : HandlebarsAssets.path