Skip to content

Instantly share code, notes, and snippets.

@mplatts
Created November 18, 2014 05:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mplatts/2a4264ba9fd1a5224a11 to your computer and use it in GitHub Desktop.
Save mplatts/2a4264ba9fd1a5224a11 to your computer and use it in GitHub Desktop.
events 4
<!-- client/views/team.html -->
<template name="team">
<li>
{{#if editing}}
<form class="form-edit">
<input name="name" type="text" value="{{name}}">
<button type="submit">Submit</button>
<a class="cancel" href="#">Cancel</a>
</form>
{{else}}
{{name}}
<a href="#" class="edit">edit</a>
<a href="#" class="remove">delete</a>
{{/if}}
</li>
</template>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment