Created
March 8, 2013 17:54
-
-
Save olivier-schmitt/5118406 to your computer and use it in GitHub Desktop.
Underscore.js template using new syntax
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="text/template" id="item-template"> | |
<div class="view"> | |
<input class="toggle" type="checkbox" {{ done ? 'checked="checked"' : '' }} /> | |
<label>{{ title }}</label> | |
<a class="destroy"></a> | |
</div> | |
<input class="edit" type="text" value="{{ title }}" /> | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment