Separate blackhighlighter server-side logic from express/swig demo page code