Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> Co-authored-by: fisker <lionkay@gmail.com>
45 lines
791 B
JavaScript
45 lines
791 B
JavaScript
const nestedFun = /* HTML */ `${outerExpr(1)}
|
|
<script>
|
|
const tpl = html\`<div>\${innerExpr(1)} ${outerExpr(2)}</div>\`;
|
|
</script>`;
|
|
|
|
const nestedFun2 = /* HTML */ `${outerExpr(1)}
|
|
<script>
|
|
const tpl = html\`\\n<div>\${innerExpr(1)} ${outerExpr(2)}</div>\\n\`;
|
|
</script>`;
|
|
|
|
setFoo(
|
|
html`<div>one</div>
|
|
<div>two</div>
|
|
<div>three</div>`,
|
|
secondArgument
|
|
);
|
|
|
|
setFoo(
|
|
html`<div>
|
|
<div>nested</div>
|
|
</div>
|
|
<div>two</div>
|
|
<div>three</div>`,
|
|
secondArgument
|
|
);
|
|
|
|
setFoo(
|
|
html`<div>
|
|
<div>nested</div>
|
|
</div>`,
|
|
secondArgument
|
|
);
|
|
|
|
// Attribute quotes
|
|
a = /* HTML */ `<div
|
|
double-quoted="${foo}"
|
|
single-quoted='${foo}'
|
|
unquoted=${foo}> </div>
|
|
`
|
|
a = /* HTML */ `<div
|
|
style="${foo}"
|
|
style='${foo}'
|
|
style=${foo}> </div>
|
|
`
|