<!doctype html>
<html lang="en" data-framework="somajs">
	<head>
		<meta charset="utf-8">
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
		<title>soma.js • TodoMVC</title>
		<link rel="stylesheet" href="bower_components/todomvc-common/base.css">
		<link rel="stylesheet" href="css/app.css">
	</head>
	<body>
		<section id="todoapp">

			<!-- HEADER VIEW, template: /views/header.js (todo.HeaderView) -->
			<header id="header">
				<h1>todos</h1>
				<input id="new-todo" placeholder="What needs to be done?" autofocus data-keypress="add()" data-blur="clear()">
			</header>

			<!-- MAIN VIEW, template: /views/main.js (todo.MainView) -->
			<section id="main" data-show="{{isVisible}}">
				<input id="toggle-all" type="checkbox" data-click="toggleAll()" data-checked="{{allCompleted}}">
				<label for="toggle-all">Mark all as complete</label>
				<ul id="todo-list" class="data-cloak">
					<li data-repeat="todo in items" class="{{completedClass(todo.completed)}} {{todo.editing}}">
						<div class="view">
							<input class="toggle" type="checkbox" data-checked="{{todo.completed}}" data-click="toggle(todo)">
							<label data-dblclick="edit(todo)">{{todo.title}}</label>
							<button class="destroy" data-click="remove(todo)"></button>
						</div>
						<input class="edit" value="{{todo.title}}" data-keypress="update(todo)" data-blur="update(todo)">
					</li>
				</ul>
			</section>

			<!-- FOOTER VIEW, template: /views/footer.js (todo.FooterView) -->
			<footer id="footer" class="data-cloak" data-show="{{footerVisible}}">
				<span id="todo-count"><strong>{{active}}</strong> {{itemLabel}} left</span>
				<ul id="filters">
					<li>
						<a class="{{highlightFilter('')}}" href="#/">All</a>
					</li>
					<li>
						<a class="{{highlightFilter('active')}}" href="#/active">Active</a>
					</li>
					<li>
						<a class="{{highlightFilter('completed')}}" href="#/completed">Completed</a>
					</li>
				</ul>
				<button id="clear-completed" data-show="{{clearCompletedVisible()}}" data-click="clearCompleted()">Clear completed ({{completed}})</button>
			</footer>

		</section>

		<footer id="info">
			<p>Double-click to edit a todo</p>
			<p>Created by <a href="http://soundstep.com">Romuald Quantin</a> (<a href="http://somajs.github.io/somajs/">soma.js</a>)</p>
			<p>Part of <a href="http://todomvc.com">TodoMVC</a></p>
		</footer>

		<!-- LIBRARIES -->
		<script src="bower_components/todomvc-common/base.js"></script>
		<script src="bower_components/director/build/director.js"></script>
		<script src="bower_components/soma.js/build/soma.js"></script>
		<script src="bower_components/soma-template/build/soma-template.js"></script>

		<!-- TODO APP -->
		<script src="js/models/todos.js"></script>
		<script src="js/models/router.js"></script>
		<script src="js/views/header.js"></script>
		<script src="js/views/main.js"></script>
		<script src="js/views/footer.js"></script>
		<script src="js/app.js"></script>
	</body>
</html>
