<% if (error) { %>
⚠ <%= error %> ⚠
<% } %>
<% if (todos.length === 0) { %>
// NO TASKS IN MEMORY
> READY FOR INPUT_
<% } else { %>
<% todos.forEach(todo => { %>
-
<%= todo.done ? '✓' : '▸' %> <%= todo.text %>
<% }) %>
<% } %>
> TOTAL: <%= todos.length %> | DONE: <%= todos.filter(t => t.done).length %> | PENDING: <%= todos.filter(t => !t.done).length %>