22 lines
634 B
HTML
22 lines
634 B
HTML
<html>
|
|
<head>
|
|
<title>{app_title}</title>
|
|
<meta content="text/html;charset=utf-8" http-equiv="Content-Type" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<meta charset="UTF-8" />
|
|
{style_include}
|
|
</head>
|
|
<body>
|
|
<div id="main"></div>
|
|
<!-- Note the usage of `type=module` here as this is an ES6 module -->
|
|
<script type="module">
|
|
import init from "{base_path}/assets/dioxus/{app_name}.js";
|
|
init("{base_path}/assets/dioxus/{app_name}_bg.wasm").then(wasm => {
|
|
if (wasm.__wbindgen_start == undefined) {
|
|
wasm.main();
|
|
}
|
|
});
|
|
</script>
|
|
{script_include}
|
|
</body>
|
|
</html> |