Compare commits
1 commit
Author | SHA1 | Date | |
---|---|---|---|
c8b78dbb86 |
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue