Last active
December 15, 2015 05:09
-
-
Save ggoodman/5206526 to your computer and use it in GitHub Desktop.
Ember Starter Kit
This file contains 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
App = Ember.Application.create({}); | |
App.IndexRoute = Ember.Route.extend({ | |
setupController: function(controller) { | |
controller.set('content', ['a', 'b', 'c']); | |
} | |
}); |
This file contains 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8" /> | |
<title>Ember Starter Kit</title> | |
<script data-require="jquery@*" data-semver="2.0.1" src="http://code.jquery.com/jquery-2.0.1.min.js"></script> | |
<script data-require="handlebars.js@*" data-semver="1.0.0-rc.4" src="http://builds.emberjs.com.s3.amazonaws.com/handlebars-1.0.0-rc.4.js"></script> | |
<script data-require="ember.js@1.0.x" data-semver="1.0.0-rc4" src="http://builds.emberjs.com/ember-bd1629e1f38888be881dbfdf29b779a0cdb4e85f.js"></script> | |
<script src="app.js"></script> | |
<link rel="stylesheet" href="style.css" /> | |
</head> | |
<body> | |
<script type="text/x-handlebars" data-template-name="index"> | |
<h2>Index Content:</h2> | |
<ul> | |
{{#each item in content}} | |
<li>{{item}}</li> | |
{{/each}} | |
</ul> | |
</script> | |
</body> | |
</html> |
This file contains 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
/* Put your CSS here */ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment