Setup inline scripts and styles

This commit is contained in:
Sam Carlton 2021-01-23 16:53:25 -06:00
parent 5cc0703508
commit 60a43c2f39
4 changed files with 78 additions and 7 deletions

View file

@ -66,9 +66,10 @@ class DefaultLayout {
return Object.values( linkTags ).join('')
}
render({
content,
title = null
title = null,
}) {
return /* html */`
<!doctype html>
@ -152,7 +153,9 @@ class DefaultLayout {
</div>
</div>
{{ Scripts }}
<script>
${ this.getJs() }
</script>
</body>
</html>
`;