-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
🐛 template/html: Cannot Clone "layouts/main" after it has executed #818
Comments
i have the same issue |
im looking into it! |
from my observations the issue does not seem to be with i went to take a deeper dive into the in the so i believe this issue should be moved to golang/go/issues |
The question is why is an |
Yep, totally agree. Giving the fact that V1 has no problems at all all the time and V2 suddenly has such problem, I'd highly suspect that the issue is V2 related, not the Go html/template package. |
Yes it seems like it is actually an issue with V2, because the the But maybe someone should refactor that file? |
I have some time tomorrow to debug this issue, I will post updates here 👍 |
Hello, so far I'm only getting this error if
|
i propose that we have a fork of the orginal golang/go project where we try to improve it and then later on when it is stable we will merge it back in to the go's official repo. |
Have you tried turn on |
yes, but thats not really viable to use on production because it will slow down rendering performance quite a bit |
Ah, gotya. yeah, make sense. |
I'm still trying to fix the issue, but no luck so far 😕😵 edit: found the problem, expect a PR soon. ( keep you updated ) |
Fiber version
v2.0.2
Issue description
Continue from #814, which were having the problem of
html/template: cannot Clone "layouts/main" after it has executed
html/template
, andHowever, the reload was not necessary before, and it only works for simple demo examples. I.e., my demo is working after the fix, while my real application is still suffering from the issue.
Here are the details:
Code snippet
I've setup a new demo at https://gitlab.com/suntong/template-html/,
Here are the test logs:
i.e., my demo can sustain the repeated requests while my real application cannot.
Again, everything about the html template handing is the same between my demo and my real application, and even the middlewares. So I'm suspecting that any other mildly complicated template/html based application would suffer from the same issue, caused by the same problem that needs to reload the template engine. If someone has to have my real application to duplicate the issue, please give me your gitlab id so that I can add you to my private project.
Thanks
The text was updated successfully, but these errors were encountered: