mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-16 14:17:22 +01:00
Add marked to jade rendering
This commit is contained in:
@@ -24,7 +24,10 @@ var pages = ['front', 'privacy', 'terms', 'api', 'features', 'videos', 'contact'
|
|||||||
|
|
||||||
_.each(pages, function(name){
|
_.each(pages, function(name){
|
||||||
router.get('/static/' + name, i18n.getUserLanguage, locals, function(req, res) {
|
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')
|
||||||
|
});
|
||||||
});
|
});
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user