feat: replace text/template with templ and refactor code
This commit is contained in:
15
views/layout.templ
Normal file
15
views/layout.templ
Normal file
@ -0,0 +1,15 @@
|
||||
package views
|
||||
|
||||
templ layout(title string) {
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
@head(title)
|
||||
<body>
|
||||
<main id="app">
|
||||
@navbar()
|
||||
{ children... }
|
||||
@footer()
|
||||
</main>
|
||||
</body>
|
||||
</html>
|
||||
}
|
Reference in New Issue
Block a user