render icon indicating copy to clipboard operation
render copied to clipboard

Render layout

Open ftomza opened this issue 8 years ago • 4 comments

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. How can I view such kind of error ?

ftomza avatar Aug 11 '17 16:08 ftomza

I ran into similar problems... the render function code isn't pretty, it ignores errors in a lot of cases.

cryptix avatar Aug 31 '17 17:08 cryptix

@ftomza @cryptix I think errors will be printed to console at least?

https://github.com/qor/render/blob/9bc9220a811df16c414ede83b3c8d6aa65788e95/template.go#L83 https://github.com/qor/render/blob/9bc9220a811df16c414ede83b3c8d6aa65788e95/template.go#L130

jinzhu avatar Sep 01 '17 04:09 jinzhu

No, they were not somehow and I got tired unwinding this clever style, it's really tiresome to follow.

I posted my version of Render() here.

cryptix avatar Sep 01 '17 08:09 cryptix

I started a fork of this package with that patch and would love to see this merged.

I found that qor/admin also has code like this here. It should also be improved but I'm unwilling to maintain a fork at this point as it is too large of an package to maintain a fork just for that size of change.

cryptix avatar Nov 18 '17 11:11 cryptix