These are chat archives for nodejs/node-v0.x-archive

11th
Oct 2015
Woody
@WOODYVILLE
Oct 11 2015 00:30
NODEJS if i use app.use(function(req,res,next) { next() } and inside this middlewear I am querying mysql and passing the data to app.locals.something. Am I able to access app.locals.something in my template? Because I cant. I can only access app.locals when I declare it outside of the middlewear.
Kenneth Lee
@kennethklee
Oct 11 2015 02:42
@WOODYVILLE you're supposed to be passing to res.locals.something for it to be available to your template.