{{#theFunction.theArg}} Show this if theFunction("theArg") is not false #259

tobych opened this Issue Sep 19, 2012 · 1 comment


None yet

2 participants


I'm working on getting Django's "Waffle" feature switches into mustache.

So far my template looks like:

   <button id="save_filter" type="button">Save</button>

Which is great. What I want though is to have this in the context:

switch_is_active: function(name) { return waffle.switch_is_active(name); }

Is that reasonable? Would this conflict with anything else?


I'll close this issue due to inactivity. If it's still relevant, leave a comment and I'll reopen it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment