qor / render

Render Templates

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Render layout

ftomza opened this issue · 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 ?

commented

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

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

fmt.Println(err)

fmt.Println(err)

commented

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.

commented

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.