Open tcha-tcho opened 11 years ago
Thanks for this detailed example. Can you also provide a non-cluster example on how this should work?
Hi shimonchayim!
The only thing that should work differently is this:
res.render("./test.ejs",res.locals());
this should work like this:
res.render("./test.ejs");
Here the documentation. Nothing so drastic, but strange :)
Thank you!
Thanks Edwardo! Looking into it.
hi!
i just need to report a strange behaviour that I'm having.
res.locals() is not working as should be. Using cluster2 I have to pass the object as argument on rendering. But in expressjs this will automatically be passed into res object and bubble until reach the engine system.
My first guess that we have a problem with globals. But globals is working fine. Any guess?
Thank you, cluster2 is a great code! :+1:
Cheers