Hello there!
It is unclear within some examples how the "Template Name" is being set.
While it is very obvious in the simple example:
|
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:
|
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.)
Hello there!
It is unclear within some examples how the "Template Name" is being set.
While it is very obvious in the
simpleexample:multitemplate/example/simple/example.go
Lines 10 to 11 in 4955c93
It is not so obvious within the
advancedexample:multitemplate/example/advanced/example.go
Line 45 in 4955c93
And is further confused within the
multibaseexample:multitemplate/example/multibase/example.go
Line 45 in 4955c93
multitemplate/example/multibase/example.go
Line 63 in 4955c93
(Not to mention the name conflicts possible within the
multibaseexample, covered in another issue.)