One common problem with template rendering is that an error in template.Execute will write a partially rendered page to the response writer.
The standard way to deal with this seems to be rendering templates to a temporary buffer and only flushing to the http response on success.
Buffers can be retained and reused to reduce gc pressure for added benefit. It seems a schema like this could be worked into the core render code, but I am not sure if that is a direction you want to go with this. I could certainly make my own renderer to do this. Thoughts?
Comment From: ankitm123
Any updates on this issue?
Comment From: parnic
I'm interested in this as well. Has anyone found a solution?