[DOC] add some information on variables and t-call

closes #540
This commit is contained in:
Géry Debongnie
2019-12-05 21:45:47 +01:00
parent ecfccf2448
commit f5b3ef5cf3
4 changed files with 24 additions and 16 deletions
@@ -500,6 +500,15 @@ will result in :
</div>
```
This can be used to define variables scoped to a sub template:
```xml
<t t-call="other-template">
<t t-set="var" t-value="1"/>
</t>
<!-- "var" does not exist here -->
```
### Translations
By default, QWeb specify that templates should be translated. If this behaviour