Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript Ember.js Routes and Templates Basic Routes and Templates

charles sancy
charles sancy
5,479 Points

Is this course no longer relevant?

I am trying to follow along locally and Ember no longer uses handlebars so I am getting Uncaught ReferenceError: EmberHandlebarsLoader is not defined. There seem to be no notes for a post Handlebar Ember. Is this course no longer relevant?

3 Answers

Douglas Counts
Douglas Counts
10,126 Points

Some have replaced the EmberHandlebarsLoader.loadTemplates() line with

Blogger.PostsRoute = Ember.Route.extend();

and gotten it to work that way.

You can also create a workspace from the video page, then click File>>Download Workspace to save it to your system's download folder. The downloaded file (.zip) should have the same versions and folder structure used at the time the course was created.

Don't do the replacement I mentioned unless you are using a newer version of the libraries or it will not route the pages properly.

-Later...

jason chan
jason chan
31,009 Points

it works. I'll screenshot you. I'm using local host with python. Be very careful with typing in your javascript. I spelled louder instead of loader... LOLs

http://oi62.tinypic.com/2vsq5wn.jpg

jason chan
jason chan
31,009 Points

have python installed if your on windows or mac.

Then run the python -m http.server in CLI