Slim middleware to minify HTML output