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
LoadHTMLGlob("templates/**/*") example in documentation doesn't work #2444
Comments
Write you html like this: |
I see, I expected the name of the template to come from the file name. Is it possible to do template inheritance when defining templates like this? |
I'm a new player and can't answer your question. Maybe you can have a try. |
I have same problem. Issue is closed but no info provided about how to fix it? |
try what favowang said |
crazy... |
Description
The
LoadHTMLGlob("templates/**/*")
example in the GitHub documentation doesn't work.How to reproduce
Create template files:
Go code (from example in documentation):
Expectations
Actual result
Also, accessing http://localhost:8080/posts/index and http://localhost:8080/users/index throws an error server-side:
Environment
The text was updated successfully, but these errors were encountered: