Created
October 10, 2014 18:50
-
-
Save davidworkman9/d5e9d6fd25f89f6e1c32 to your computer and use it in GitHub Desktop.
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
Blaze.registerHelper('ifEqualReturn', function (cond1, cond2, first, second) { | |
return cond1 === cond2 ? first : second; | |
}); |
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
<template name="test"> | |
<li class="{{ifEqualReturn this._id selectedEl 'active' ''}}">test</li> | |
</template> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment