Created
January 9, 2013 12:35
-
-
Save oem/4492832 to your computer and use it in GitHub Desktop.
minimalistic example for a new ember.js app in coffeescript
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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