get rid of jade/haml, use ejs instead

This commit is contained in:
jomo
2015-10-14 01:12:30 +02:00
parent b0f50cbed0
commit bf1e26d2c5
5 changed files with 397 additions and 447 deletions

View File

@@ -1,9 +1,10 @@
var config = require("../../config");
var path = require("path");
var jade = require("jade");
var read = require("fs").readFileSync;
var ejs = require("ejs");
// compile jade
var index = jade.compileFile(path.join(__dirname, "..", "views", "index.jade"));
var str = read(path.join(__dirname, "..", "views", "index.html.ejs"), "utf-8");
var index = ejs.compile(str);
module.exports = function(req, callback) {
var html = index({