[FIX] qweb: allow t-if with t-call directives

closes #246
This commit is contained in:
Géry Debongnie
2019-07-16 13:17:51 +02:00
parent 5382e824b1
commit b1d022b583
3 changed files with 27 additions and 0 deletions
@@ -806,6 +806,22 @@ exports[`t-call (template calling scoped parameters 1`] = `
}"
`;
exports[`t-call (template calling t-call with t-if 1`] = `
"function anonymous(context,extra
) {
var h = this.h;
let c1 = [], p1 = {key:1};
var vn1 = h('div', p1, c1);
if (context['flag']) {
let c2 = [], p2 = {key:2};
var vn2 = h('span', p2, c2);
c1.push(vn2);
c2.push({text: \`ok\`});
}
return vn1;
}"
`;
exports[`t-call (template calling with unused body 1`] = `
"function anonymous(context,extra
) {