feat: hello world js test

This commit is contained in:
Guz
2024-10-13 20:18:25 -03:00
parent 09e1a0ce1e
commit cfac969a12
3 changed files with 12 additions and 2 deletions

3
assets/js/entry.js Normal file
View File

@@ -0,0 +1,3 @@
import * as hello from './hello.js';
hello.hello();

View File

@@ -1 +1,6 @@
console.log("hello world");
/**
* Says hello!
*/
export function hello() {
console.log('hello world');
}

View File

@@ -2,7 +2,9 @@ package layouts
templ Page() {
<html>
<head></head>
<head>
<script type="module" src="/assets/js/entry.js"></script>
</head>
<body>
{ children... }
</body>