Express local for MathJax path

This commit is contained in:
Jessica Lawshe 2018-06-27 17:26:39 -05:00
parent 9f5e976539
commit 90986c1ade

View file

@ -167,6 +167,11 @@ module.exports = (app, webRouter, privateApiRouter, publicApiRouter)->
path = Path.join("/img/", imgFile)
return Url.resolve(staticFilesBase, path)
res.locals.mathJaxPath = res.locals.buildJsPath(
'libs/mathjax/MathJax.js',
{cdn:false, qs:{config:'TeX-AMS_HTML'}}
)
next()