feat: replace text/template with templ and refactor code
This commit is contained in:
12
views/error.templ
Normal file
12
views/error.templ
Normal file
@ -0,0 +1,12 @@
|
||||
package views
|
||||
|
||||
import "strconv"
|
||||
|
||||
templ ErrorPage(code int, display string) {
|
||||
@layout("Error - dumb") {
|
||||
<div id="error">
|
||||
<h1>{ strconv.Itoa(code) }</h1>
|
||||
<p>{ display }</p>
|
||||
</div>
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user