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

14 lines
289 B
Plaintext
Raw Normal View History

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