Skip to content

Instantly share code, notes, and snippets.

@akdubya
Created October 29, 2010 22:54
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 akdubya/654615 to your computer and use it in GitHub Desktop.
Save akdubya/654615 to your computer and use it in GitHub Desktop.
{
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"
}
{#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