mirror of
https://github.com/odoo/owl.git
synced 2025-10-06 19:59:41 +07:00
[IMP] compiler: improve generated compiled code
This commit is contained in:
committed by
Aaron Bohy
parent
bd5637c0a3
commit
c7af885f43
@@ -22,8 +22,8 @@ exports[`t-props basic use 2`] = `
|
||||
let block1 = createBlock(\`<span><block-text-0/></span>\`);
|
||||
|
||||
return function template(ctx, node, key = \\"\\") {
|
||||
let d1 = ctx['props'].a+ctx['props'].b;
|
||||
return block1([d1]);
|
||||
let txt1 = ctx['props'].a+ctx['props'].b;
|
||||
return block1([txt1]);
|
||||
}
|
||||
}"
|
||||
`;
|
||||
@@ -50,9 +50,9 @@ exports[`t-props t-props and other props 2`] = `
|
||||
let block1 = createBlock(\`<div><block-text-0/><block-text-1/></div>\`);
|
||||
|
||||
return function template(ctx, node, key = \\"\\") {
|
||||
let d1 = ctx['props'].a;
|
||||
let d2 = ctx['props'].b;
|
||||
return block1([d1, d2]);
|
||||
let txt1 = ctx['props'].a;
|
||||
let txt2 = ctx['props'].b;
|
||||
return block1([txt1, txt2]);
|
||||
}
|
||||
}"
|
||||
`;
|
||||
@@ -79,8 +79,8 @@ exports[`t-props t-props only 2`] = `
|
||||
let block1 = createBlock(\`<div><block-text-0/></div>\`);
|
||||
|
||||
return function template(ctx, node, key = \\"\\") {
|
||||
let d1 = ctx['props'].a;
|
||||
return block1([d1]);
|
||||
let txt1 = ctx['props'].a;
|
||||
return block1([txt1]);
|
||||
}
|
||||
}"
|
||||
`;
|
||||
|
||||
Reference in New Issue
Block a user