Edgewall Software

Opened 17 years ago

Closed 17 years ago

#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)

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

Change History (2)

comment:1 Changed 17 years ago by cmlenz

  • Description modified (diff)
  • Status changed from new to assigned

(fixed up wiki formatting for better readability)

comment:2 Changed 17 years ago by cmlenz

  • Resolution set to fixed
  • Status changed from assigned to closed

Fixed in [491].

Note: See TracTickets for help on using tickets.