Skip to content

Instantly share code, notes, and snippets.

@panphora
Created May 22, 2015 03:57
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 panphora/37ac9020982185e58e0c to your computer and use it in GitHub Desktop.
Save panphora/37ac9020982185e58e0c to your computer and use it in GitHub Desktop.
Template.DiscoverPage.helpers({
currentTabIs: function (tabName) {
return Template.instance().currentTabIs(tabName);
},
selectedIfCurrentTabIs: function (tabName) {
if (Template.instance().currentTabIs(tabName)) {
return 'selected';
} else {
return '';
}
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment