31 lines
726 B
HTML
31 lines
726 B
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
%head%
|
|
|
|
<style>%css%</style>
|
|
<script type="module" defer>
|
|
import View from '/js/views/%canonicalViewName%.js';
|
|
import * as stores from '/js/stores.js';
|
|
const localStore = stores[Object.keys(stores)[0]].locals;
|
|
|
|
const locals = %locals%;
|
|
localStore.set((key, args) => {
|
|
const localKey = args ?
|
|
`'${key}', \`${args}\``
|
|
: `'${key}'`;
|
|
// console.debug(localKey + '=' + locals[localKey])
|
|
return locals[localKey];
|
|
});
|
|
|
|
new View({
|
|
hydrate: true,
|
|
target: document.body,
|
|
});
|
|
</script>
|
|
</head>
|
|
<body>
|
|
%html%
|
|
</body>
|
|
</html>
|