EmberScript – Ember.js-infused CoffeeScript



EmberScript – Ember.js-infused CoffeeScript

1 0


ember-script-preso

EmberScript presentation

On Github ghempton / ember-script-preso

EmberScript

Ember.js-infused CoffeeScript

Gordon L. Hempton / @ghempton / emberscript.com

What is Ember.js?

Motivation

  • Tedious
    • Getters/setters
    • Computed property dependencies
  • CoffeeScript impedance mismatch
    • Classes
    • Indentation

Language Support For

  • Getters and setters
  • Classes and mixins
  • Computed properties and observers

Object Model

class Animal
X
X

Accessors

person.firstName
X
X

Computed Properties & Observers

class App.PostsController extends Ember.ArrayController
X
X

Dependency Inference

class App.PostsController extends Ember.ArrayController
X
X

Getting Started

  • gem 'ember_script-rails'
  • application_controller.em

Haml : CoffeeScript :: Emblem : EmberScript

emblemjs.com

Thanks CoffeeScriptRedux

by Michael Ficarra

EmberScript

Ember.js infused CoffeeScript

Gordon L. Hempton / @ghempton / emberscript.com