<%
var i = data.i;
var item = data.item;
var completed = item.completed;
%>
<li class="<%= (completed ? 'completed' : 'active') %>">
	<div class="view" data-action="prepare(<%= i %>)">
		<input class="toggle" type="checkbox" <%= (completed ? 'checked' : '') %> data-action="status(<%= i %>)">
		<label><%= item.title %></label>
		<button class="destroy" data-action="delete(<%= i %>)"></button>
	</div>
	<input class="edit" data-action="commit(<%= i %>)">
</li>
