Skip to content

Instantly share code, notes, and snippets.

@oem
Created January 9, 2013 12:35
Show Gist options
  • Select an option

  • Save oem/4492832 to your computer and use it in GitHub Desktop.

Select an option

Save oem/4492832 to your computer and use it in GitHub Desktop.
minimalistic example for a new ember.js app in coffeescript
# Dependencies: jquery, handlebars.js, ember.js (1.0pre)
App = Em.Application.create()
App.ApplicationView = Em.View.extend
templateName: 'application'
App.ApplicationController = Em.Controller.extend
name: "oembot"
App.Router = Em.Router.extend
root: Em.Route.extend
index: Em.Route.extend
route: '/'
# html file snippet
<script type="text/x-handlebars" data-template-name="application">
Name: {{name}}
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment