render
render copied to clipboard
Render Templates
Currently, no error is shown anywhere if an error occurs during layout render
Hi! I render some template using layout (application.tmpl). But for some reason layout contains error. In this case I can't view layout error neither in IDE console nor in browser....
[currently](https://github.com/qor/render/blob/9bc9220a811df16c414ede83b3c8d6aa65788e95/template.go#L46) the templates are parsed on each request. that seems wasteful. also: i think there is a better way to do `yield` with [`block`](https://godoc.org/text/template#example-Template--Block).