Tim Starling wrote:
I'm willing to hear a case for the use of switch, but I'm not convinced of its
utility based what
I've seen.
It's syntactic sugar for a series of conditionals. I used to recommend
{{switch}} over {{qif}} for performance reasons, since multiple calls to
qif can often be replaced with one switch, but I doubt it makes as much
difference in the new implementation. Still, switch is often more
readable, and having it would make converting existing templates easier.
--
Ilmari Karonen