Starting my way in node + express, what's the difference between:
app.set(key, value)
and
app.locals({key: value});
I've read the express docs and it states that app.locals are passed to all the rendered views, but I was also able to access the settings from a jade view as well (using #{settings.someKey}). As both are available in jade templates I can't seem to figure out what the difference or different usage for the 2.