Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Examples unclear (room for docs!) #27

Open
AlbinoGeek opened this issue Aug 11, 2020 · 0 comments
Open

Examples unclear (room for docs!) #27

AlbinoGeek opened this issue Aug 11, 2020 · 0 comments

Comments

@AlbinoGeek
Copy link

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.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant