2021-03-24 16:07:50 +01:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="en">
|
|
|
|
<head>
|
|
|
|
%head%
|
|
|
|
|
|
|
|
<style>%css%</style>
|
|
|
|
<script type="module" defer>
|
2021-05-04 17:04:14 +02:00
|
|
|
import View from '/js/views/%canonicalViewName%.js';
|
|
|
|
import {locals} from '/js/stores.js';
|
2021-03-24 16:07:50 +01:00
|
|
|
|
2021-05-04 17:04:14 +02:00
|
|
|
locals.set(%locals%);
|
2021-03-24 16:07:50 +01:00
|
|
|
|
|
|
|
new View({
|
|
|
|
hydrate: true,
|
|
|
|
target: document.body,
|
|
|
|
props: {
|
2021-04-29 15:46:48 +02:00
|
|
|
locals: (key, args) => {
|
|
|
|
return locals[args ?
|
|
|
|
`'${key}', \`${args}\``
|
|
|
|
: `'${key}'`];
|
2021-03-24 16:07:50 +01:00
|
|
|
},
|
|
|
|
},
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
%html%
|
|
|
|
</body>
|
|
|
|
</html>
|