Created
October 29, 2010 22:54
-
-
Save akdubya/654615 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
{ | |
ifequal: function(chunk, context, bodies, params) { | |
if (params.left === params.right) { | |
return chunk.render(bodies.block, context); | |
} else { | |
return chunk.render(bodies['else'], context); | |
} | |
}, | |
foo: "value", | |
bar: "value" | |
} |
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
Hello |
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
{#ifequal left=foo right=bar} | |
Hello | |
{:else} | |
Goodbye | |
{/ifequal} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment