Edgewall Software

Ticket #92 (closed defect: fixed)

Opened 5 years ago

Last modified 5 years ago

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

Changed 5 years ago by cmlenz

  • status changed from new to assigned
  • description modified (diff)

(fixed up wiki formatting for better readability)

Changed 5 years ago by cmlenz

  • status changed from assigned to closed
  • resolution set to fixed

Fixed in [491].

Add/Change #92 (Genshi won't render variables with an extra $ before them in the template)

Author


E-mail address and user name can be saved in the Preferences.


Change Properties
<Author field>
Action
as closed
The resolution will be deleted. Next status will be 'reopened'
 
Note: See TracTickets for help on using tickets.