Old Guides - You are viewing the guides for Ember v1.10.0. VIEW v3.28.0
Edit Page

The Application Template

The application template is the default template that is rendered when your application starts.

You should put your header, footer, and any other decorative content here. Additionally, you should have at least one {{outlet}}: a placeholder that the router will fill in with the appropriate template, based on the current URL.

Here's an example template:

  <h1>Igor's Blog</h1>


  &copy;2013 Igor's Publishing, Inc.

The header and footer will always be displayed on screen, but the contents of the <div> will change depending on if the user is currently at /posts or /posts/15, for example.

For more information about how outlets are filled in by the router, see Routing.

If you are keeping your templates in HTML, create a <script> tag without a template name. Ember will use the template without a name as the application template and it will automatically be compiled and appended to the screen.

<script type="text/x-handlebars">

If you're using build tools to load your templates, make sure you name the template application.