Refactoring to support inlined scripts

This commit is contained in:
2023-05-02 03:46:47 +02:00
parent e3a022d420
commit 4006f3954e
12 changed files with 563 additions and 231 deletions

View File

@@ -1,4 +1,2 @@
export const test = ()=>{
return `I'm "annoying" ${"in case we need to test \`string\` escaping."}. Hence this files \'tries\' to include all allowed forms of 'it'`;
}
console.log(test());
export const b = ()=>'batman';
console.log(b());

View File

@@ -0,0 +1,12 @@
<html>
<head>
</head>
<body>
<script type="module">
import {b} from "./batman.js";
document.body.appendChild(
document.createTextNode(`Inline script including ${b()}`)
);
</script>
</body>
</html>