Created
December 2, 2015 02:09
-
-
Save harrisrobin/424610a2ad138d708d75 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> | |
</header> | |
<form class="new-task"> | |
<input type="text" name="text" placeholder="Type to add new tasks" /> | |
</form> | |
<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">{{title}}</span> | |
</li> | |
</template> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment