fabpot/Twig — Issue #632: Damn variable problem!
Author: sensi
Created: 2012-02-14 12:43:27+00:00
State: open

So again my main problem with Twig.

I wana do something like that:

{% trans with {'%value%': {{ mydata.creditcard.fee|number_format(2, ",", ".") }} } from "mydomain" %}my.trans.key.%value%{%endtrans%}

I wana replace the placeholder %value% with a template variable mydata.creditcard.fee and filter |number_format... on it.

I always get an exeption.

How can I fix this issue? Any idee?

Greeting
Michael