是否可以像这样从服务器中获取所有本地人:
express:
res.render('index', {
title: 'My Title',
p1: 1,
p1: 2,
p1: 3,
p1: 4
});
jade:
html
head
body
script
var all_locals = _.getLocals(); // all_locals => { title: 'My Title', p1: 1, p1: 2, p1: 3, p1: 4}