Skip to content

Instantly share code, notes, and snippets.

@digilord
Created January 26, 2015 12:59
Show Gist options
  • Save digilord/0bfbccb09affb31e1a47 to your computer and use it in GitHub Desktop.
Save digilord/0bfbccb09affb31e1a47 to your computer and use it in GitHub Desktop.
<template name="ionNavBar">
<div class="{{classes}} nav-bar-block nav-bar-transition-{{transition}} nav-bar-direction-forward" data-navbar-container>
{{> yield "headerButtonLeft"}}
{{> yield "headerTitle"}}
{{> yield "headerButtonRight"}}
</div>
</template>
<!--
This file is from meteoric
-->
Template.user.events
'click .done-button': (event, template) ->
console.log 'Clicked done-button: ', this
<template name='user'>
{{#contentFor "headerTitle"}}
<h1 class="title">Edit</h1>
{{/contentFor}}
{{#contentFor "headerButtonLeft"}}
<a class='button button-icon' data-nav-direction="back" href="/users">Back</a>
{{/contentFor}}
{{#contentFor "headerButtonRight"}}
<button class="button button-icon done-button">Done</button>
{{/contentFor}}
<p>Body text for main yield</p>
</template>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment