routing
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
package templates
|
||||
|
||||
templ Layout(title string, cssPath string, jsPath string) {
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||||
<title>{ title }</title>
|
||||
<link rel="stylesheet" href={ cssPath }/>
|
||||
<script type="module" src={ jsPath } defer></script>
|
||||
</head>
|
||||
<body class="bg-stone-950 text-stone-100 antialiased">
|
||||
{ children... }
|
||||
</body>
|
||||
</html>
|
||||
}
|
||||
Reference in New Issue
Block a user