Skip to content

Instantly share code, notes, and snippets.

@pfac
Last active August 29, 2015 14:14
Show Gist options
  • Save pfac/79d76d0cb567fd034226 to your computer and use it in GitHub Desktop.
Save pfac/79d76d0cb567fd034226 to your computer and use it in GitHub Desktop.
Ember notes

Don't use Ember.js for low interactivity cases like:

  • blog
  • static content

root

var App = Ember.Application.create(options);

options is a plain javascript object.

var options = { LOG_TRANSITIONS: true };

For example, this would cause Ember to log every time the page changes to the console.

Templating

Ember uses Handlebars (maybe I just need this). The official documentation also mentions Emblem.js, but says to get used with Handlebars first.

Handlebars templates contain the html that will be placed when the template is rendered, along with some {{ ... }} expressions which get evaluated.

By default, Ember uses a root template with name application for the layout. Inside, {{outlet}} expressions tell Ember where the rendered templates must be placed. By default, it will look for one named index.

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