JSFiddle - React, Tailwind, and code Playground
HTML
<script src="https://github.com/downloads/wycats/handlebars.js/handlebars-1.0.rc.1.js"></script>
<script src="https://raw.github.com/sh4n3d4v15/ember-todos/master/app/scripts/vendor/ember.js"></script>
<script type="text/x-handlebars">
<header>
<img src="http://lorempixel.com/400/100/animals/"/>
</header>
<div class="content">
{{outlet}}
</div>
<footer>
<p>© Joe's Lamprey Shack - All Rights Reserved</p>
</footer>
</script>
<script type="text/x-handlebars" data-template-name="home">
<h3>Hours</h3>
<ul>
{{#each entry in hours}}
<li>{{entry}}</li>
{{/each}}
</ul>
</script>
JavaScript
App = Ember.Application.create();
App.Router = Ember.Router.extend();
App.Router.map(function(match) {
match("/").to("home");
});
App.HomeRoute = Ember.Route.extend({
setupControllers: function(controller) {
controller.set('hours', [
"Monday through Friday: 9am to 5pm",
"Saturday: Noon to Midnight",
"Sunday: Noon to 6pm"
])
}
});
App.HomeController = Ember.Controller.extend({
// The HomeRoute will populate the hours
hours: null
});
App.initialize();