aboutsummaryrefslogtreecommitdiff
path: root/xess/xess.templ
blob: 84eff14e6068f17cf7a4aed4e1ec1dde8ac3d613 (plain)
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
package xess

templ Base(title string, headArea, navBar, bodyArea, footer templ.Component) {
	<!DOCTYPE html>
	<html>
		<head>
			<title>{ title }</title>
			<link rel="stylesheet" href={ URL }/>
			<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
			if headArea != nil {
				@headArea
			}
		</head>
		<body id="top">
			<main>
				if navBar != nil {
					<nav>
						@navBar
					</nav>
				}
				<h1>{ title }</h1>
				@bodyArea
				if footer != nil {
					<footer>
						@footer
					</footer>
				}
			</main>
		</body>
	</html>
}

templ Simple(title string, body templ.Component) {
	@Base(
		title,
		nil,
		nil,
		body,
		nil,
	)
}

templ fourohfour(path string) {
	<p>404: <code>{ path }</code></p>
	<p>Sorry but the number you have reached is either not available or out of service. If you are reaching this message in error, please hang up and try your call again.</p>
}