newsbot-portal/internal/views/layout/error.templ

14 lines
289 B
Plaintext

package layout
import "git.jamestombleson.com/jtom38/newsbot-portal/internal/models"
templ Error(err error) {
@WithTemplate(models.HeaderMetaTags{
Title: "Error",
Description: err.Error(),
}) {
<h1 class="title">Error</h1>
<h2 class="subtitle">{ err.Error() } </h2>
}
}