28 lines
440 B
Plaintext
28 lines
440 B
Plaintext
|
package layout
|
||
|
|
||
|
templ WithLayout(pageName string, useDarkMode bool) {
|
||
|
<html>
|
||
|
@getHtmlHead()
|
||
|
<body>
|
||
|
@bootstrapNavBar()
|
||
|
@getBodyHeader(pageName)
|
||
|
<div class="container-fluid">
|
||
|
{ children... }
|
||
|
</div>
|
||
|
</body>
|
||
|
</html>
|
||
|
}
|
||
|
|
||
|
templ Testing(pageName string) {
|
||
|
<html>
|
||
|
@getHtmlHead()
|
||
|
<body>
|
||
|
@bootstrapNavBar()
|
||
|
@getBodyHeader(pageName)
|
||
|
<div class="container-fluid">
|
||
|
{ children... }
|
||
|
</div>
|
||
|
</body>
|
||
|
</html>
|
||
|
}
|