From c2271c8740ca5f301138d5c1620d6e78a68acdff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Theys?= Date: Tue, 23 Jul 2019 14:35:35 +0000 Subject: [IMP] doc: add t-name t-extend to QWeb JS task-2040835 closes odoo/odoo#35116 Signed-off-by: Quentin Smetz (qsm) --- doc/reference/qweb.rst | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'doc/reference') diff --git a/doc/reference/qweb.rst b/doc/reference/qweb.rst index c1c7ec8e7c4..cd44ae28235 100644 --- a/doc/reference/qweb.rst +++ b/doc/reference/qweb.rst @@ -455,12 +455,16 @@ template inheritance '''''''''''''''''''' Template inheritance is used to alter existing templates in-place, e.g. to -add information to templates created by an other modules. +add information to templates created by other modules. Template inheritance is performed via the ``t-extend`` directive which takes the name of the template to alter as parameter. -The alteration is then performed with any number of ``t-jquery`` +When ``t-extend`` is combined with ``t-name`` a new template with the given name +is created. In this case the extended template is not altered, instead the +directives define how to create the new template. + +In both cases the alteration is then performed with any number of ``t-jquery`` sub-directives:: -- cgit v1.2.3