[IMP] qweb: mention the two possible syntaxes for t-attf

closes odoo/documentation#1454

Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
This commit is contained in:
Stan 2021-12-28 16:18:56 +00:00 committed by Antoine Vandevenne (anv)
parent dfdbf18afa
commit cdb8d51131

View File

@ -223,6 +223,11 @@ exists in 3 different forms:
<li class="row even">1</li>
<li class="row odd">2</li>
<li class="row even">3</li>
.. tip::
There are two equivalent syntaxes for format strings: ``"plain_text {{code}}"`` (aka
jinja-style) and ``"plain_text #{code}"`` (aka ruby-style).
:samp:`t-att=mapping`
if the parameter is a mapping, each (key, value) pair generates a new
attribute and its value::