Ticket #92 (closed defect: fixed)
Genshi won't render variables with an extra $ before them in the template
| Reported by: | adam@… | Owned by: | cmlenz |
|---|---|---|---|
| Priority: | minor | Milestone: | 0.4 |
| Component: | Template processing | Version: | 0.3.5 |
| Keywords: | Cc: |
Description (last modified by cmlenz) (diff)
It seems that Genshi won't render a variable when the template has an extra $ before it.
Examples:
if payment_amount is 10
- ${payment_amount} will render to 10
- $${payment_amount} will render out to ${payment_amount}
- $$${payment_amount} will render to $${payment_amount}
- $$$${payment_amount} will render to $${payment_amount}
- $$$$${payment_amount} will render to $$${payment_amount}
I also tried $${payment_amount}, but that renders to ${payment_amount}
The workaround that I found is $‍${payment_amount}, which renders to $10, but it looks messy in the rendered code with the zero-width joiner
Attachments
Change History
Note: See
TracTickets for help on using
tickets.
