I know this may sound like an anti-pattern but does anyone know of a convenient way to achieve something like Case/Switch statement in a template.
All the unintentional and often hard to avoid noise from nested conditionals is quite hard to read. And setting up all the computed properties in the controller can be tedious. Even if ripe for abuse it would be so nice if this pattern could be used in templates. Maybe S-Expressions syntax could help?
If this is a bad idea can someone explain precisely why?