Created
August 7, 2014 08:32
-
-
Save steveyken/46f4419bdcdb1d788fcd to your computer and use it in GitHub Desktop.
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 */ | |
html, body { | |
margin: 20px; | |
} |
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 name="description" content="My Ember Boilerplate for JSbin" /> | |
<meta charset="utf-8"> | |
<title>Ember Boilerplate</title> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<link rel="stylesheet" src="//cdnjs.cloudflare.com/ajax/libs/font-awesome/4.1.0/css/font-awesome.min.css"> | |
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/normalize/3.0.1/normalize.min.css"> | |
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css"> | |
<script src="//ajax.googleapis.com/ajax/libs/jquery/2.1.0/jquery.min.js"></script> | |
<script src="//cdnjs.cloudflare.com/ajax/libs/handlebars.js/1.3.0/handlebars.js"></script> | |
<script src="//cdnjs.cloudflare.com/ajax/libs/ember.js/1.6.1/ember.js"></script> | |
</head> | |
<body> | |
<script type="text/x-handlebars"> | |
<div class="container"> | |
{{outlet}} | |
</div> | |
</script> | |
<script type="text/x-handlebars" data-template-name="index"> | |
<div class="page-header"> | |
<h1>Ember Boilerplate <small>Learning to do things</small></h1> | |
</div> | |
<div> | |
{{#each}} | |
{{name}} | |
{{/each}} | |
</div> | |
</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
App = Ember.Application.create(); | |
App.Router.map(function() { | |
// put your routes here | |
}); | |
App.Item = Ember.Object.extend({ | |
name: '' | |
}); | |
var item = App.Item.create({ | |
name: 'My name' | |
}); | |
App.IndexRoute = Ember.Route.extend({ | |
model: function() { | |
return [item]; | |
} | |
}); | |
App.IndexController = Ember.ArrayController.extend({ | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment