Skip to content
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

Render layout #2

Open
ftomza opened this issue Aug 11, 2017 · 4 comments
Open

Render layout #2

ftomza opened this issue Aug 11, 2017 · 4 comments

Comments

@ftomza
Copy link

ftomza commented Aug 11, 2017

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 ?

@cryptix
Copy link

cryptix commented Aug 31, 2017

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

@jinzhu
Copy link
Contributor

jinzhu commented Sep 1, 2017

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

fmt.Println(err)

fmt.Println(err)

@cryptix
Copy link

cryptix commented Sep 1, 2017

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
Copy link

cryptix commented Nov 18, 2017

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants