gin
gin copied to clipboard
Is it possible to watch .html files?
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.
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
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.
You can use --all
now.
--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
.