Skip to content

Instantly share code, notes, and snippets.

@philipmjohnson
Last active August 31, 2016 22:03
tasklist.html-2
<head>
<title>tasklist</title>
</head>
<body>
{{> tasks}}
</body>
<template name="tasks">
<h1>Add Task</h1>
<form class="add-task">
<label>Task Name</label>
<input type="text" name="name" placeholder="Add Task" />
<input type="submit" value="Submit" />
</form>
<hr />
<h3>Tasks</h3>
<ul>
{{#each tasks}}
<li>{{name}} <a href="#" class="delete-task">X</a></li>
{{/each}}
</ul>
</template>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment