Supporting multri entry

This commit is contained in:
2023-05-02 05:05:42 +02:00
parent 4006f3954e
commit 9768b3efe5
10 changed files with 193 additions and 13 deletions

View File

@@ -0,0 +1,12 @@
<html>
<head>
</head>
<body>
<div id="root"></div>
<script type="module">
import {bootstrap} from "../app/app.js"
import {adminDeps} from "../app/admin-deps.js";
bootstrap(document.getElementById('root'), adminDeps());
</script>
</body>
</html>

View File

@@ -0,0 +1,3 @@
export function adminDeps(){
return "robin!";
}

View File

@@ -0,0 +1,6 @@
export const bootstrap = (el,deps = [])=>{
el.innerHtml = `
<div>I'm "annoying" ${"in case we need to test \`string\` escaping."}. Hence this file \'tries\' to include all allowed forms of 'it'</div>
<div>Deps: ${deps}</div>
`;
}

View File

@@ -0,0 +1,11 @@
<html>
<head>
</head>
<body>
<div id="root"></div>
<script type="module">
import {bootstrap} from "./app/app.js"
bootstrap(document.getElementById('root'), "<none>");
</script>
</body>
</html>