Created
November 14, 2014 04:27
-
-
Save shu0115/2b5495328f8dadbad83c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<head> | |
<title>Todo List</title> | |
</head> | |
<body> | |
<div class="container"> | |
<header> | |
<h1>Todo List</h1> | |
<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">×</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