dantebronto / picard

A Micro-framework for node.js
216 stars 12 forks source link

partials still getting cached in development mode #11

Closed danieldkim closed 14 years ago

danieldkim commented 14 years ago

this little change to line 224 in request_extensions.js seems to fix it:

http://gist.github.com/462092

danieldkim commented 14 years ago

btw, i noticed that the read of the partial template is synchronous. any reason for that?

dantebronto commented 14 years ago

This really bothers me but I can't think of a suitable fix. The partial loading is the only synchronous part of the framework. The reason I had to do this was in the event that someone calls a partial inside of an :each loop. If the partial loading is deferred until later, the partial scope would be lost, that is without majorly refactoring the way views are rendered.