I should amend my comment... `HandlebarsTemplates` is only accessible within the context of a ruby/rails app that includes the [handlebars_assets](https://github.com/leshill/handlebars_assets) gem, which defines that function.

You may also [precompile](http://handlebarsjs.com/precompilation.html) templates, as per the hbars docs.