Created
April 10, 2013 14:54
-
-
Save armetiz/5355333 to your computer and use it in GitHub Desktop.
This file contains hidden or 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.boxes.helpers({ | |
ifHourEnabled: function(conditional, options) { | |
if(0 !== (conditional & maskHours[this])) { | |
return options.fn(this); | |
} else { | |
return options.inverse(this); | |
} | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Use like that
{{ifHourEnabled this}}display true{{else}}display false{{/ifHourEnabled}}