29 lines
569 B
HTML
29 lines
569 B
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
%head%
|
|
|
|
<style>%css%</style>
|
|
<script type="module" defer>
|
|
import View from '/js/%canonicalViewName%.js';
|
|
|
|
const locals = %locals%;
|
|
|
|
new View({
|
|
hydrate: true,
|
|
target: document.body,
|
|
props: {
|
|
locals: (key, args) => {
|
|
return locals[args ?
|
|
`'${key}', \`${args}\``
|
|
: `'${key}'`];
|
|
},
|
|
},
|
|
});
|
|
</script>
|
|
</head>
|
|
<body>
|
|
%html%
|
|
</body>
|
|
</html>
|