node-swig / swig-templates

Take a swig of the best template engine for JavaScript.
http://node-swig.github.io/swig-templates/
MIT License
209 stars 29 forks source link

¿Why do I need to restart express server when I make a change to a swig template? #43

Closed parakawa closed 7 years ago

parakawa commented 7 years ago

Every time I make a change to my .html file, I hope to only reload the page to see my changes. However, using swig, I have to restart the server. Is it a bug, or should I configure something additional?

Thanks.

cdaringe commented 7 years ago

hello, swig doesn't do caching on it's own. that is--rendering is just a normal function. most likely, some other layer on your server is reading in the template, caching it, and not updating on save. good luck!

cdaringe commented 7 years ago

i don't use express, otherwise i'd lend more tips!