gin icon indicating copy to clipboard operation
gin copied to clipboard

Is it possible to watch .html files?

Open PanicIsReal opened this issue 8 years ago • 4 comments

Currently I parse all template files into a variable when the app launches, so any later made changes will not appear, tried using gin -t . -i but the html changes don't seem to do anything. Any information would be great thanks.

PanicIsReal avatar Apr 30 '16 06:04 PanicIsReal

Same here, I just changed line 172 to something like: if info.ModTime().After(startTime) {

https://github.com/codegangsta/gin/blob/master/main.go#L172

oyvindsk avatar May 24 '16 10:05 oyvindsk

Same here, I'm working with .tmpl files. Changing the app code wouldn't be ideal since in a production environment these files never change, but if gin supported it that'd be very useful during development.

blixt avatar Oct 16 '16 15:10 blixt

You can use --all now.

Timmmm avatar May 18 '17 08:05 Timmmm

--all doesn't exactly cut it. E.g. if your code generates temporary files, logs, or writes to a local file database, it will be constantly rebuilt. A better option would be to only watch specific types of files. Or use .gitignore.

kyegupov avatar Dec 04 '18 09:12 kyegupov