summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/framework/session_instance.js
diff options
context:
space:
mode:
authorJeremy Kersten <jke@odoo.com>2016-04-21 14:23:22 +0200
committerOlivier Dony <odo@openerp.com>2016-04-27 16:47:51 +0200
commit679f14dc5950c340023cfda2a001fc106232de6c (patch)
tree4531389c2f117e75c982e2aa9d00125adfb864e7 /addons/web/static/src/js/framework/session_instance.js
parentbb8f0f1fc3d0f5574938019ca69cc917a55e7962 (diff)
[ADD] base: view inheritance with wrapping support
When using the inheritance spec `position="replace"`, the framework will now support a text node exactly equal to `$0` and will replace it with the node that was matched by the inheritance locator. Given an original view equal to this: ``` <div class="foo"> <p class="bar">the paragraph</p> </div> ``` And an inherited view with the following inheritance spec: ``` <p class="bar" position="replace"> <div class="panel"> <div class="panel-header">The Title</div> <div class="panel-body"> $0 </div> </div> </p> ``` The finalt result after inheritance would become: ``` <div class="foo"> <div class="panel"> <div class="panel-header">The Title</div> <div class="panel-body"> <p class="bar">the paragraph</p> </div> </div> </div> ``` Also updated doc and tests accordingly.
Diffstat (limited to 'addons/web/static/src/js/framework/session_instance.js')
0 files changed, 0 insertions, 0 deletions