Skip to content

Commit

Permalink
Step 2: ExpressJS template
Browse files Browse the repository at this point in the history
  • Loading branch information
vkarpov15 committed Jul 25, 2013
1 parent 9baed5a commit 4ca0e7c
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions views/index.jade
@@ -1,5 +1,20 @@
extends layout

block content
h1= title
p Welcome to #{title}
h1 My Todo List
h2 Upcoming
- each todo in todos
- if (!todo.done)
div
input(type="checkbox")
| #{todo.description}
div
| #{todo.due.toDateString()}
h2 Done
- each todo in todos
- if (todo.done)
div
input(type="checkbox", checked="true")
del #{todo.description}
div
| #{todo.due.toDateString()}

0 comments on commit 4ca0e7c

Please sign in to comment.