feat: initial support for importing html from js

This commit is contained in:
2023-11-26 22:15:40 +01:00
parent afd4a3c9ae
commit 71a377417d
18 changed files with 332 additions and 154 deletions

View File

@@ -0,0 +1,2 @@
export const b = ()=>'batman';
console.log(b());

View File

@@ -0,0 +1,3 @@
<svg viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg">
<path style="fill:none;stroke:#00ff0d;stroke-width:5;stroke-linecap:square;stroke-linejoin:miter;stroke-dasharray:none;stroke-opacity:1" d="M4.1 14.72 16 26.31 28.38 5.09"/>
</svg>

After

Width:  |  Height:  |  Size: 244 B

View File

@@ -0,0 +1,9 @@
<html>
<head>
<link rel="icon" href="./icon.svg">
<!-- <link rel="stylesheet" href="./joker.css">-->
</head>
<body>
<!--<script src="./batman.js" type="module"></script>-->
</body>
</html>

View File

@@ -0,0 +1,5 @@
import html from "./index.html"
export function render(){
return html;
}

View File

@@ -0,0 +1 @@
* { width: 100%; }