Handlebars.templates missing in ember.js master branch? #25

Closed
awt opened this Issue Jun 19, 2012 · 8 comments

Comments

Projects
None yet
2 participants

awt commented Jun 19, 2012

I've been going through the process of upgrading to ember.js master branch, and it appears that Handlebars.templates no longer exists, which causes an error when hamlbars attempts to set Handlebars.templates["path/to/template"].

It could very well be that something else in my code is busted, but I wanted to ask if you could point me anywhere to make sure that the handlebars library still supports setting paths via Handlebars.templates?

Owner

jamesotron commented Jun 19, 2012

Have you tried adding

Hamlbars::Template.render_templates_for :ember

to an initializer?

awt commented Jun 19, 2012

Gah! I was not using that. Up to now I'd been using emberjs-rails, and just switched to ember-rails to be able to use the latest version of ember ( to get access to routing capabilities ).

I am now. I've verified that the snippet you pasted is being called in the initializer I added, but I'm still seeing this:

Handlebars.templates["requester/views/browse"] = Handlebars.compile{etc.........}

Owner

jamesotron commented Jun 20, 2012

What gem version are you using?

awt commented Jun 21, 2012

I'm using 1.0. I tried actually removing the hamlbars gem from my Gemfile, restarting rails and clearing my browser cache and the Handlebars.templates... lines were still at the bottom of my app.js file. Something very strange is going on with my setup.

Owner

jamesotron commented Jun 21, 2012

Try nuking the contents of tmp/cache/ and public/assets/

James Harton
sociable.co.nz
@jamesotron
+64226803869

On Thursday, 21 June 2012 at 12:39 PM, Adam Thorsen wrote:

I'm using 1.0. I tried actually removing the hamlbars gem from my Gemfile, restarting rails and clearing my browser cache and the Handlebars.templates... lines were still at the bottom of my app.js file. Something very strange is going on with my setup.


Reply to this email directly or view it on GitHub:
#25 (comment)

awt commented Jun 21, 2012

Bingo! Thanks a lot. I totally forgot about those two caches.

Owner

jamesotron commented Jun 21, 2012

Great, so this issue can be closed?

awt commented Jun 21, 2012

Closing.

@awt awt closed this Jun 21, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment