1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
package main
templ base(title string) {
<html>
<head>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<link rel="stylesheet" type="text/css" href="/static/styles.css"/>
<title>{ title }</title>
</head>
<body>
<main>
{ children... }
</main>
</body>
</html>
}
templ index() {
@base("Index") {
<div class="bg-rose-200">testing, testing</div>
}
}