started working on the templating system
[VSCPweb/.git] / templates / components.gohtmx.html
1 <!--Here you will define all of your components to reuse in your code including-->
2 <!--it's HTMX and tailwind classes as well as its gotemplating-->
3
4 {{define "headHTML"}}
5 <!DOCTYPE html>
6 <html>
7     <head>
8         <meta charset="utf-8">
9         <title>{{.tittle}} webpage</title>
10         <link rel="stylesheet" type="text/css" href="static/tailwind.css"
11     </head>
12 {{end}}
13
14
15 {{define "headerHTML"}}
16 <header>
17     {{.header}}
18     <h1>welp, it looks like it werks</h1>
19     <br>
20     <nav>
21         <a href="/">Go back home</a>
22     </nav>
23 </header>
24 {{end}}
25
26
27 {{define "footerHTML"}}
28 <h3>so, looks like {{.footer}}</h3>
29 <footer>
30     <p>yeah yeah whateverssss</p>
31 </footer>
32 </body>
33 </html>
34 {{end}}
35
36
37