]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commit
Add else statement inside of ifequal example 10156/head
authorDavid Luhr <davidc.luhr@gmail.com>
Thu, 8 Jun 2017 17:24:36 +0000 (11:24 -0600)
committerGitHub <noreply@github.com>
Thu, 8 Jun 2017 17:24:36 +0000 (11:24 -0600)
commit1f451a1842abf9de1e3323fde02b62d050ff8d86
tree22fff5a130675ebd23daf6d98a51f573c2cea1fa
parent954f9a055c89d0ccaf939f8c1b0c71c53f2977c0
Add else statement inside of ifequal example

It is unclear that else statements are possible inside of {{#ifequal}} helpers to show HTML if the two values are not equal. Because there are {{#ifpage}} and {{#unlesspage}} as separate equal/not equal helpers, users may be confused that there is no equivalent "unlessequal" helper or "!" syntax.

I have successfully used the {{else}} Handlebars helper inside if the {{#ifequal}} Paini helper to achieve the desired "not equal" condition, but only thought to try this as a guess after a lot of unsuccessful searching through documentation on both Handlebars and Panini.
docs/pages/panini.md