Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save kiriappeee/df9a2c799712a3288947 to your computer and use it in GitHub Desktop.
Save kiriappeee/df9a2c799712a3288947 to your computer and use it in GitHub Desktop.
<li class="{{if isCompleted 'completed'}}">
{{#if isEditing}}
{{input type="text" class="edit" value=todo.title focus-out="acceptChanges"
insert-newline="acceptChanges"}}
{{else}}
{{input type="checkbox" checked=todo.isCompleted class="toggle"}}
<label {{action "editTodo" on="doubleClick"}}>{{title}}</label><button class="destroy"></button>
{{/if}}
</li>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment