feat: replace text/template with templ and refactor code
This commit is contained in:
12
views/head.templ
Normal file
12
views/head.templ
Normal file
@ -0,0 +1,12 @@
|
||||
package views
|
||||
|
||||
templ head(title string) {
|
||||
<head>
|
||||
<title>{ title }</title>
|
||||
<meta charset="utf-8"/>
|
||||
<link rel="stylesheet" type="text/css" href="/static/style.css"/>
|
||||
<link rel="icon" href="/static/logo.svg" type="image/svg+xml"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||||
<script type="text/javascript" src="/static/script.js" defer></script>
|
||||
</head>
|
||||
}
|
Reference in New Issue
Block a user