-
Notifications
You must be signed in to change notification settings - Fork 43
Open
Description
Hello there!
It is unclear within some examples how the "Template Name" is being set.
While it is very obvious in the simple example:
multitemplate/example/simple/example.go
Lines 10 to 11 in 4955c93
| r.AddFromFiles("index", "templates/base.html", "templates/index.html") | |
| r.AddFromFiles("article", "templates/base.html", "templates/index.html", "templates/article.html") |
It is not so obvious within the advanced example:
multitemplate/example/advanced/example.go
Line 45 in 4955c93
| r.AddFromFiles(filepath.Base(include), files...) |
And is further confused within the multibase example:
| r.AddFromFiles(filepath.Base(article), files...) |
| r.AddFromFiles(filepath.Base(admin), files...) |
(Not to mention the name conflicts possible within the multibase example, covered in another issue.)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels