Skip to content

Commit

Permalink
update documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
josuebrunel committed Nov 23, 2023
1 parent 433f495 commit 220c9f8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,10 @@ It works with *patterns* just like `template.ParseGlob`.
layoutPath := "templates/layouts/*.html"
userPath := "templates/user/*.html"
rolePath := "templates/role/*.html"
tplMap, err := templatesmap.NewTemplatesMap(layoutPath, userPath, rolePath)
funcs := template.FuncsMap{
"upper": strings.ToUpper,
}
tplMap, err := templatesmap.NewTemplatesMap(layoutPath, funcs, userPath, rolePath)
if err != nil {
log.Fatal(err)
}
Expand Down

0 comments on commit 220c9f8

Please sign in to comment.