Comments (3)
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.
from gin.
Same issue here. And same hoorah for codegansta.
from gin.
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,
})
from gin.
Related Issues (20)
- Support for args on binary HOT 2
- gRPC usage HOT 2
- error while access to url localhost:8080 HOT 4
- Feature request: Support TLS backends HOT 4
- Go get gin can't find urfave module HOT 4
- flag provided but not defined: -immediate HOT 1
- No connection could be made because the target machine actively refused it
- Upgrade wercker build to use docker version
- Auto assign port for proxy server
- Incorrect Usage: flag provided but not defined: -appPort HOT 3
- Build fails
- Has this project been abandoned? HOT 2
- go
- Broken build HOT 4
- Can add a monitoring build for static files?
- command.ProcessState could be nil
- No error log when use gin with dlv for remote debug. HOT 1
- Perhaps suggest go install command instead of go get HOT 1
- My file content hasn't changed, but gin always executes building.
- This exception occurs frequently
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gin.