diff options
author | Arnaud Chesnay <arnaud.chesnay@gmail.com> | 2017-09-27 11:25:44 +0200 |
---|---|---|
committer | Arnaud Chesnay <arnaud.chesnay@gmail.com> | 2017-09-27 11:25:44 +0200 |
commit | afed8463e2faa7715dcbdd662b79aede3bc22d3e (patch) | |
tree | c4c2003b3f6be56c80f281b8145ccd2007d27ece | |
parent | index (diff) |
app
-rw-r--r-- | app.js | 11 |
1 files changed, 0 insertions, 11 deletions
@@ -15,17 +15,6 @@ app.get('/' + path + '/*', function(req, res) { fs.readFile(req.url.substr(1), 'utf8', function(err, data) { if (err) return console.log(err); - /*fs.readFile('public/css/style.css', 'utf8', function(err, style) { - var html = '<html>'; - html += '<head>'; - html += '<style>' + style + '</style>'; - html += '</head>'; - html += '<body class=\'markdown-preview\' data-use-github-style>'; - html += converter.makeHtml(data); - html += '</body>'; - html += '</html>'; - res.send(html); - });*/ res.send(converter.makeHtml(data)); }); }); |