makesites / brisk

Automation for Express.js #express.js #javascript
3 stars 1 forks source link

Site config should be available when rendering the views #40

Closed tracend closed 11 years ago

tracend commented 11 years ago

This could be done simply with:

res.locals.config = req.site.config;
tracend commented 11 years ago

Site config is now available using:

res.locals.site = brisk.loadConfig('site');

Although this is not the complete config it should be enough (+ safer) to address this issue