From 6cfde9f88530417a0a2947126169f937a1f48b59 Mon Sep 17 00:00:00 2001 From: Li Ge Date: Fri, 18 Jan 2013 16:53:32 -0800 Subject: [PATCH] make ss-jade accept data argument from serveClient --- wrapper.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wrapper.js b/wrapper.js index c4ad29f..4ce4d8b 100644 --- a/wrapper.js +++ b/wrapper.js @@ -19,7 +19,7 @@ exports.init = function(root, config) { compile: function(path, options, cb) { - var locals = {}; + var locals = (options && options.locals) ? options.locals : {}; // Merge any locals passed to config.locals if (config.locals && typeof(config.locals) === 'object')