Skip to content

Instantly share code, notes, and snippets.

@pangratz
Created November 3, 2012 12:42
Show Gist options
  • Save pangratz/4007260 to your computer and use it in GitHub Desktop.
Save pangratz/4007260 to your computer and use it in GitHub Desktop.
Ember.js showcase
App = Ember.Application.create();
App.ApplicationView = Ember.View.extend();
App.ApplicationController = Ember.Controller.extend();
App.Router = Ember.Router.extend({
root: Ember.Route.extend({
index: Ember.Route.extend()
})
});
<html>
<body>
<script type="text/x-handlebars">
Hello Ember.js world
</script>
<script src="http://code.jquery.com/jquery-1.8.2.min.js" ></script>
<script src="http://cloud.github.com/downloads/wycats/handlebars.js/handlebars-1.0.rc.1.js" ></script>
<script src="http://cloud.github.com/downloads/pangratz/ember.js/ember-latest.js" ></script>
<script src="http://cloud.github.com/downloads/pangratz/data/ember-data-latest.js" ></script>
<script src="app.js" type="text/javascript" ></script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment