writeHtmlBundle
import { writeHtmlBundle } from "https://raw.githubusercontent.com/Hatscat/MetavaScript/main/index.ts";
utility function to write a Web App source code in a file
@example
// write "<title>template</title><style>h1{text-align:center}</style><h1 id=h><script>h.innerHTML='hello!'</script>" in the "dist/index.html" file
writeHtmlBundle({
css: formatStylesheet({ h1: { textAlign: "center" } }),
js: setInnerHtml("h", Text("hello!")),
html: {
head: [
titleTag("Title"),
],
body: [
element("h1", { tagProps: { id: "h" } }),
],
}
})