Almost working

This commit is contained in:
Eden Kirin
2024-01-21 00:17:49 +01:00
parent 960c22a8c8
commit 9d76a8dc22
6 changed files with 151 additions and 53 deletions

7
app/templates/home.templ Normal file
View File

@ -0,0 +1,7 @@
package templates
templ Home(name string) {
@baseLayout() {
<div>Hello, { name }</div>
}
}

View File

@ -0,0 +1,15 @@
package templates
templ baseLayout() {
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<title>Document</title>
</head>
<body>
{ children... }
</body>
</html>
}