[IMP] components: allow multiple roots in slots

closes #199
This commit is contained in:
Géry Debongnie
2019-06-23 09:03:18 +02:00
parent 8c8ffb6a6b
commit af6aca83a2
6 changed files with 125 additions and 54 deletions
+2 -2
View File
@@ -1132,10 +1132,10 @@ const SLOTS_XML = `<templates>
<t t-set="footer"><button t-on-click="inc('a', 1)">Increment A</button></t>
</Card>
<Card title="'Title card B'">
<div t-set="content">
<t t-set="content">
<div>Card 2... [<t t-esc="state.b"/>]</div>
<Counter />
</div>
</t>
<t t-set="footer"><button t-on-click="inc('b', -1)">Decrement B</button></t>
</Card>
</div>