Skip to content

Instantly share code, notes, and snippets.

@rickard2
Created November 2, 2012 09:35
Show Gist options
  • Save rickard2/3999774 to your computer and use it in GitHub Desktop.
Save rickard2/3999774 to your computer and use it in GitHub Desktop.
Ember Playground
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8/>
<title>Dev playground</title>
<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.0.beta.6.js"></script>
<script src="http://cloud.github.com/downloads/emberjs/ember.js/ember-1.0.0-pre.2.js"></script>
</head>
<body>
<script type="text/x-handlebars" data-template-name="application">
Hello World
</script>
<script type='text/javascript'>
var App = Ember.Application.create();
App.ApplicationController = Ember.Controller.extend();
App.ApplicationView = Ember.View.extend({
templateName:'application'
});
App.Router = Ember.Router.extend({
root:Ember.Route.extend({
index:Ember.Route.extend({
route:'/'
})
})
});
App.initialize();
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment