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

Defining templates

Let's see how templates fit in to our Ember.js application. When you create a new application using Ember CLI, you will find the app/templates folder inside your application. This is where the Ember.js resolver looks for template files for your project.

Let's look at the default application.hbs template present at app/templates/:

<h2 id="title">Welcome to Ember.js</h2>
{{outlet}}

The default application template is present at chapter-3/example1/app/templates/application.hbs

The application template is the main template that is rendered when the application starts. The most common use case for application templates is to put in the header and footer of the application here. This is the entry point for the application and it makes ...

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