How do I do a simple if/else in the Genshi templating language?
I've found this ticket, which seems to suggest that Genshi doesn't support if/else, but it doesn't really explain what it supports instead.
I basically just want something like this:
<py:if test="c.row.currency">
${c.row.currency.upper()}
<py:else>
${c.row.dataset_.currency.upper()}
</py:if>
But I get 'Bad Directive: else'. Should I be using py:choose instead? I can't really get my head around how to use it for an if/else condition.