From 9b9a7471671c1773c4f203ed5493be6d5bdc5913 Mon Sep 17 00:00:00 2001 From: Timothy Gu Date: Sun, 11 Jan 2015 00:02:02 -0800 Subject: [PATCH] Support ejs 2.0 Fixes #2437. This is still relying on undocumented behavior, but should unbreak the app in the mean time. --- src/node/eejs/index.js | 2 +- src/package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/node/eejs/index.js b/src/node/eejs/index.js index 30f5a442..5f2baaf3 100644 --- a/src/node/eejs/index.js +++ b/src/node/eejs/index.js @@ -114,7 +114,7 @@ exports.require = function (name, args, mod) { args.e = exports; args.require = require; - var template = '<% e._init(buf); %>' + fs.readFileSync(ejspath).toString() + '<% e._exit(); %>'; + var template = '<% e._init([__output]); %>' + fs.readFileSync(ejspath).toString() + '<% e._exit(); %>'; exports.info.args.push(args); exports.info.file_stack.push({path: ejspath, inherit: []}); diff --git a/src/package.json b/src/package.json index 8ba31be8..6c6123da 100644 --- a/src/package.json +++ b/src/package.json @@ -28,7 +28,7 @@ "cheerio" : ">=0.18.0", "async-stacktrace" : ">=0.0.2", "npm" : ">=2.1.x", - "ejs" : "~1.0.0", + "ejs" : "^2.0.0", "graceful-fs" : ">=3.0.4", "slide" : ">=1.1.6", "semver" : ">=2.3.0",