ravelsoft/node-jinjs — Issue #22: express running, modified template cannot be rendered rightly
Author: jockyang
Created: 2012-02-16 07:02:51+00:00
State: open

when express server is running, I modify my template. Then access the page, the errors occurred:

500 TypeError: Cannot set property '/home/jock/apps/huodongtong/app/views/layout/form_layout.html' of undefined
at /home/jock/node_modules/jinjs/lib/environment.js:159:38
at eval at (/home/jock/node_modules/jinjs/lib/environment.js:165:14)
at Object.render (eval at (/home/jock/node_modules/jinjs/lib/environment.js:165:14))
at ServerResponse._render (/home/jock/node_modules/express/lib/view.js:425:21)
at ServerResponse.render (/home/jock/node_modules/express/lib/view.js:318:17)
at Controller.render (/home/jock/node_modules/locomotive/lib/locomotive/controller.js:98:14)

But, when I restart the server, all is right again.

what's the problem?