Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.