mirror of
https://github.com/azures04/crafatar.git
synced 2026-05-06 11:00:39 +02:00
get rid of jade/haml, use ejs instead
This commit is contained in:
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user