feat: hello world js test
This commit is contained in:
3
assets/js/entry.js
Normal file
3
assets/js/entry.js
Normal file
@@ -0,0 +1,3 @@
|
||||
import * as hello from './hello.js';
|
||||
|
||||
hello.hello();
|
||||
@@ -1 +1,6 @@
|
||||
console.log("hello world");
|
||||
/**
|
||||
* Says hello!
|
||||
*/
|
||||
export function hello() {
|
||||
console.log('hello world');
|
||||
}
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user