Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

54 lines (47 sloc) 1.475 kb
<head>
<meta charset="utf-8">
<title>Meteor • TodoMVC</title>
</head>
<body>
<section id="todoapp">
{{> todo}}
</section>
<footer id="info">
<p>Double-click to edit a todo</p>
<p>Template by <a href="http://sindresorhus.com">Sindre Sorhus</a></p>
<p>Created by <a href="https://github.com/siuying">siuying</a>.</p>
<p>Modifications by <a href="https://github.com/addyosmani">addyosmani</a>.</p>
<p>Part of <a href="http://todomvc.com">TodoMVC</a></p>
</footer>
</body>
<template name="todo">
<header id="header">
<h1>todos</h1>
<input id="new-todo" placeholder="What needs to be done?" autofocus>
</header>
<section id="main">
<input id="toggle-all" type="checkbox">
<label for="toggle-all">Mark all as complete</label>
<ul id="todo-list">
{{#each tasks}}
{{> item}}
{{/each}}
</ul>
</section>
{{#if hasTodo}}
<footer id="footer">
<span id="todo-count"><strong id="incompleted">{{ incompleted }}</strong>{{ incompleted_text }}</span>
<button id="clear-completed">Clear completed (<span id="completed">{{ completed }}</span>)</button>
</footer>
{{/if}}
</template>
<template name="item">
<li class="{{#if editing}}editing{{/if}} {{#if completed}}completed{{/if}}">
<div class="view">
<input class="toggle" type="checkbox" {{#if completed}}checked{{/if}}>
<label>{{ title }}</label>
<button class="destroy"></button>
</div>
<input class="edit" value="{{ title }}">
</li>
</template>
Jump to Line
Something went wrong with that request. Please try again.