Reputation: 25060
Suppose I have a list of items each one with a property (status
) which can have one of these values:
I need to display three different things in the template according to that value. These three things differ in markup and not only value.
Now mustache being logic-less doesn't really provide logic constructs. Only boolean conditions can be "emulated ifs" with sections and inverted sections.
Given that I have 3 different status values, what's the best way to construct the template?
Upvotes: 2
Views: 1670