DEVELOPMENT ENVIRONMENT

~liljamo/felu

ref: 0221a5951f28eddb81d3bc69980467a7d6c5b3e8 felu/components.templ -rw-r--r-- 495 bytes
0221a595Jonni Liljamo feat: htmx and doctype 11 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
package main

templ base(title string) {
	<!DOCTYPE html>
	<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"/>

			<script src="/static/htmx.min.js"></script>

			<title>{ title }</title>
		</head>
		<body>
			<main>
				{ children... }
			</main>
		</body>
	</html>
}

templ index() {
	@base("Index") {
		<div class="bg-rose-200">testing, testing</div>
	}
}