Skip to content

Instantly share code, notes, and snippets.

@shu0115
Created November 14, 2014 04:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shu0115/d031a0806a3e6932e958 to your computer and use it in GitHub Desktop.
Save shu0115/d031a0806a3e6932e958 to your computer and use it in GitHub Desktop.
<head>
<title>Todo List</title>
</head>
<body>
<div class="container">
<header>
<h1>Todo List ({{incompleteCount}})</h1>
<label class="hide-completed">
<input type="checkbox" checked="{{hideCompleted}}" />
Hide Completed Tasks
</label>
<form class="new-task">
<input type="text" name="text" placeholder="Type to add new tasks" />
</form>
</header>
<ul>
{{#each tasks}}
{{> task}}
{{/each}}
</ul>
</div>
</body>
<template name="task">
<li class="{{#if checked}}checked{{/if}}">
<button class="delete">&times;</button>
<input type="checkbox" checked="{{checked}}" class="toggle-checked" />
<span class="text">{{text}}</span>
</li>
</template>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment