Add marked to jade rendering

This commit is contained in:
Blade Barringer
2015-09-06 19:45:35 -05:00
parent 1e29020df9
commit 205bbeee75

View File

@@ -24,7 +24,10 @@ var pages = ['front', 'privacy', 'terms', 'api', 'features', 'videos', 'contact'
_.each(pages, function(name){
router.get('/static/' + name, i18n.getUserLanguage, locals, function(req, res) {
res.render('static/' + name, {env: res.locals.habitrpg});
res.render( 'static/' + name, {
env: res.locals.habitrpg,
marked: require('marked')
});
});
})