-
Notifications
You must be signed in to change notification settings - Fork 17.9k
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
html/template: Calling Template.Execute with no top-level template panics #10786
Comments
Please provide a complete example, avoiding files if possible. |
Thanks, I've boiled it down to this: http://play.golang.org/p/EQyvlM7LYX It doesn't occur with |
@anacrolix what go version are you using? I'm not facing any issue on tip. |
I was running go1.4. It does not happen in master. go version devel +7eec656 Wed May 20 07:54:37 2015 +0000 darwin/amd64 I have a feeling I already reported this issue once before. |
Fixed at tip. |
@robpike Where can i see changes? |
Compare calling
t.ExecuteTemplate(w, "", data)
which gives errorhtml/template: "" is an incomplete template
. There should be a suitable error forTemplate.Execute
, or the docs improved.The text was updated successfully, but these errors were encountered: