Created
November 4, 2014 12:08
-
-
Save nicolechung/470c3972e7283373b3ac to your computer and use it in GitHub Desktop.
Ember Starter Kit// source http://emberjs.jsbin.com/yoyomo
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> | |
<link rel="stylesheet" href="http://cdnjs.cloudflare.com/ajax/libs/normalize/2.1.0/normalize.css"> | |
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script> | |
<script src="http://builds.handlebarsjs.com.s3.amazonaws.com/handlebars-v1.3.0.js"></script> | |
<script src="http://builds.emberjs.com/tags/v1.8.0/ember.js"></script> | |
<style id="jsbin-css"> | |
/* Put your CSS here */ | |
html, body { | |
margin: 20px; | |
} | |
/* */ | |
</style> | |
</head> | |
<body> | |
<script type="text/x-handlebars" data-template-name="application">{{outlet}}</script> | |
<script type="text/x-handlebars" data-template-name="index">{{#linkTo 'hi'}}Say hi{{/linkTo}}</script> | |
<script type="text/x-handlebars" data-template-name="hi">Hi</script> | |
<script id="jsbin-javascript"> | |
var App = Ember.Application.create(); | |
// When you create your app, it automatically links to | |
// <script type="text/x-handlebars"><\/script> | |
// Actually the first template is | |
// <script type="text/x-handlebars" data-template-name="application">{{outlet}}<\/script> | |
// And the outlet for the "application" template comes from | |
// <script type="text/x-handlebars" data-template-name="index"><\/script> | |
// "IndexRoute", "IndexView", and "IndexController" are created automatically by Ember | |
App.Router.map(function(){ | |
this.route('hi'); | |
}); | |
</script> | |
<script id="jsbin-source-html" type="text/html"><!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Ember Starter Kit</title> | |
<link rel="stylesheet" href="http://cdnjs.cloudflare.com/ajax/libs/normalize/2.1.0/normalize.css"> | |
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"><\/script> | |
<script src="http://builds.handlebarsjs.com.s3.amazonaws.com/handlebars-v1.3.0.js"><\/script> | |
<script src="http://builds.emberjs.com/tags/v1.8.0/ember.js"><\/script> | |
</head> | |
<body> | |
<script type="text/x-handlebars" data-template-name="application">{{outlet}}<\/script> | |
<script type="text/x-handlebars" data-template-name="index">{{#linkTo 'hi'}}Say hi{{/linkTo}}<\/script> | |
<script type="text/x-handlebars" data-template-name="hi">Hi<\/script> | |
</body> | |
</html> | |
</script> | |
<script id="jsbin-source-css" type="text/css">/* Put your CSS here */ | |
html, body { | |
margin: 20px; | |
} | |
/* */</script> | |
<script id="jsbin-source-javascript" type="text/javascript">var App = Ember.Application.create(); | |
// When you create your app, it automatically links to | |
// <script type="text/x-handlebars"><\/script> | |
// Actually the first template is | |
// <script type="text/x-handlebars" data-template-name="application">{{outlet}}<\/script> | |
// And the outlet for the "application" template comes from | |
// <script type="text/x-handlebars" data-template-name="index"><\/script> | |
// "IndexRoute", "IndexView", and "IndexController" are created automatically by Ember | |
App.Router.map(function(){ | |
this.route('hi'); | |
}); | |
</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 */ | |
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
var App = Ember.Application.create(); | |
// When you create your app, it automatically links to | |
// <script type="text/x-handlebars"></script> | |
// Actually the first template is | |
// <script type="text/x-handlebars" data-template-name="application">{{outlet}}</script> | |
// And the outlet for the "application" template comes from | |
// <script type="text/x-handlebars" data-template-name="index"></script> | |
// "IndexRoute", "IndexView", and "IndexController" are created automatically by Ember | |
App.Router.map(function(){ | |
this.route('hi'); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment