leshill / handlebars_assets

Use handlebars.js templates with the Rails asset pipeline.
MIT License
649 stars 159 forks source link

Register Handlebars #87

Closed larryzhao closed 10 years ago

larryzhao commented 10 years ago

There's some global utility function I'd like to use inside Handlebar template, is there a way to register them at the Handlebar compilation phrase, so that it could save some time on executing on the page?

Thank you very much.

AlexRiedler commented 10 years ago

This is the idea of https://github.com/leshill/handlebars_assets#patching-handlebarsjs ; does that solve your issue?

larryzhao commented 10 years ago

That really helps. Thanks!