Setting variables

The QWeb template is also capable of defining the variable in the template itself. After defining the template, you can use the variable in the subsequent template. You can set the variable like this:

<t t-set="my_var" t-value="5 + 1"/>
<t t-esc="my_var"/>
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset