O'Reilly logo

Ember.js Web Development with Ember CLI by Suchit Puri

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Customizing templates to render

Up until now, we have seen that when you visit a URL /example, which maps to route app/routes/example.js and app/routes/example/index.js, this renders app/templates/example.hbs and app/templates/example/index.hbs templates. To change this behavior, Ember.js provides us with a hook that is used to resolve which templates to render for the current route.

One common use case for customizing which templates to render is when your application template has multiple outlets and you want to render a particular route on an outlet other than the default one.

Let's see this by an example. We will be using the bootstrap library in our project. For this, we need to first install the bootstrap dependency in our project by using ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required