fix(templates): match *.html only

This commit is contained in:
Felipe M 2025-04-04 19:17:28 +02:00
parent 1823a432f8
commit c8b78dbb86
Signed by: fmartingr
GPG key ID: CCFBC5637D4000A8

View file

@ -25,7 +25,7 @@ func (e *Engine) Render(name string, data any) ([]byte, error) {
// NewTemplateEngine creates a new template engine from the given templates
func NewEngine(templates fs.FS) (*Engine, error) {
tmpls, err := template.ParseFS(templates, "*.html", "**/*.html")
tmpls, err := template.ParseFS(templates, "*.html")
if err != nil {
return nil, fmt.Errorf("failed to parse templates: %w", err)
}