Skip to content

Commit

Permalink
adding index file
Browse files Browse the repository at this point in the history
  • Loading branch information
moschel committed Feb 21, 2011
1 parent 98b0c87 commit f3b08df
Showing 1 changed file with 51 additions and 0 deletions.
51 changes: 51 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
<title>todo</title>
</head>
<body>
<div id='todos'>
<h1>Todos</h1>
<input type='text' class='create'/>
<ul id='list'></ul>
<div id='todo-stats'>

</div>
</div>

<script type='text/ejs' id='todosEJS'>
<% for(var i =0; i < this.length ; i++){ %>
<li <%= this[i]%>>
<%= $.View('todoEJS',this[i] ) %>
</li>
<% } %>
</script>
<script type='text/ejs' id='todoEJS'>
<input type='checkbox' name='complete'
<%= this.complete ? "checked" : "" %>>
<span class=''><%= (this.text || "empty todo ...")%></span>
<span class='destroy'></span>
</script>
<script type='text/ejs' id='statsEJS'>
<% if (total) { %>
<span class="todo-count">
<span class="number"><%= remaining %></span>
<span class="word"><%= remaining == 1 ? 'item' : 'items' %></span> left.
</span>
<% } %>
<% if (completed) { %>
<span class="todo-clear">
<a href="#">
Clear <span class="number-done"><%= completed %></span>
completed <span class="word-done"><%= completed == 1 ? 'item' : 'items' %></span>
</a>
</span>
<% } %>

</script>
<script type='text/javascript'
src='../steal/steal.js?todo/todo,development'>
</script>
</body>
</html>

0 comments on commit f3b08df

Please sign in to comment.