cowboyd / handlebars.rb

Ruby Bindings for Handlebars.js
http://www.handlebarsjs.com
161 stars 67 forks source link

init context with addition js #28

Closed fedotov2d closed 9 years ago

fedotov2d commented 10 years ago

Initialize new context with optional JavaScript addition, shared for both client and server, such as helpers.

hbs = Handlebars::Context.new with: File.expand_path('js/helpers.js')

hypomodern commented 9 years ago

I think you could probably use the method outlined in #30 to accomplish this now.