tj / co-views

Higher-level template rendering for node.js using generators
173 stars 24 forks source link

Views won't reload except on server restart #10

Closed alfrednerstu closed 10 years ago

alfrednerstu commented 10 years ago

(I don't know if this is the right place to post this)

I'm using Koa and co-views together but then I make an update to a view (I use HTML views) and reload the browser nothing happens. I need to restart the server to see the updates I've made. I'm running in development mode so there shouldn't be any caching.

What am I doing wrong? Is there a way to make the views update without restarting the server while developing?

Thanks!

tj commented 10 years ago

which template engine?

alfrednerstu commented 10 years ago

HTML swig

var render = views(__dirname + '/views', {
  map: { html: 'swig' }
});
ryankask commented 10 years ago

This is happening to me as well, cache is off.

tj commented 10 years ago

sounds like a swig and/or consolidate issue