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

auto-relod pages on change #85

Open
7belrhalmia opened this issue Sep 6, 2015 · 3 comments
Open

auto-relod pages on change #85

7belrhalmia opened this issue Sep 6, 2015 · 3 comments

Comments

@7belrhalmia
Copy link

i wont just to now if we can auto-refrache the page web when we do changes to awer pages

@travjones
Copy link

I am encountering a similar issue. I've used gin in the past with go 1.4 and changes to pages (templates) would occur after refresh. I upgraded to Go 1.5 recently (not saying this is the cause) and now I have to save a go file in the directory (e.g., main.go) in order to get a template/page to change on refresh in the browser.

It's totally possible that I set up my project wrong or something. Has anyone encountered a similar problem?

Thanks,
Travis

P.S. Codegansta, you rock man. Thanks so much for contributing awesome packages to the Go community.

@ghost
Copy link

ghost commented Oct 6, 2015

Same issue here. And same hoorah for codegansta.

@travjones
Copy link

Hi again,

My homie pointed out the problem. I was using unrolled/render in my project and "IsDevelopment" was set to false. Once I set it to true, the templates started updating on refresh again. THIS IS NOT A PROBLEM WITH GIN. I WAS BEING A NOOB.

ren := render.New(render.Options{
Layout:        "shared/layout",
IndentJSON:    true,
IsDevelopment: true,
})

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

2 participants