v4/templates/testing/templates.go

14 lines
291 B
Go

// Package testing provides test helpers that support fiber templates
package testing
import (
"html/template"
"git.sapphic.engineer/roleypoly/v4/templates"
)
var (
Templates = template.Must(template.ParseFS(templates.FS, "*.html")).Funcs(template.FuncMap{
"embed": func() {},
})
)