I have a rails application that uses ember-rails stone.
There is a section of my site that is not located on ember, but where it would be convenient to use one of the steering templates served by the asset pipeline. However, something seems wrong. In particular, my template is returned like this:
Ember.TEMPLATES["views/wanderlists/templates/gallery"] = Handlebars.template(function anonymous(Handlebars,depth0,helpers,partials,data) { helpers = helpers || Ember.Handlebars.helpers; var self=this; data.buffer.push("<h1>Gallery!</h2>\n"); });
However, if I try to use this template:
Ember.TEMPLATES["views/wanderlists/templates/gallery"]({}) TypeError: Cannot read property 'buffer' of undefined
Any idea why the generated template will have problems?
source share