Skip to content
This repository has been archived by the owner on Nov 11, 2017. It is now read-only.

Commit

Permalink
Adding the First Route and Template
Browse files Browse the repository at this point in the history
  • Loading branch information
trek committed Apr 24, 2013
1 parent 0880d6e commit 8775d1b
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
6 changes: 6 additions & 0 deletions index.html
Expand Up @@ -6,6 +6,8 @@
<link rel="stylesheet" href="style.css">
</head>
<body>
<script type="text/x-handlebars" data-template-name="todos">

<section id="todoapp">
<header id="header">
<h1>todos</h1>
Expand Down Expand Up @@ -55,10 +57,14 @@ <h1>todos</h1>
<footer id="info">
<p>Double-click to edit a todo</p>
</footer>

</script>

<script src="js/libs/jquery.min.js"></script>
<script src="js/libs/handlebars.js"></script>
<script src="js/libs/ember.js"></script>
<script src="js/libs/ember-data.js"></script>
<script src="js/app.js"></script>
<script src="js/router.js"></script>
</body>
</html>
1 change: 1 addition & 0 deletions js/app.js
@@ -0,0 +1 @@
window.Todos = Ember.Application.create();
3 changes: 3 additions & 0 deletions js/router.js
@@ -0,0 +1,3 @@
Todos.Router.map(function () {
this.resource('todos', { path: '/' });
});

0 comments on commit 8775d1b

Please sign in to comment.