[ZPT] Using the fmt parameter from DTML ?

Dieter Maurer dieter@handshake.de
Tue, 9 Apr 2002 22:08:44 +0200


Gitte Wange writes:
 > I am converting some skins from DTML to ZPT.
 > Here I used something like:
 > <dtml-var price fmt="%.2f">
 >
 > But how do I do this in zpt ?

You use Python's "%" operator.

    <... tal:content="python: '%.2f' % price" ...>


Dieter