Medium/soynode — pull request #29 by MathieuTurcotte (2014-08-21 01:25:30+00:00)
Title: Fix a bug where compileTemplateFilesAndEmit inputDir parameter was not bound.

Fix a bug where compileTemplateFilesAndEmit inputDir parameter was not bound properly when doing a dynamic compilation causing a TypeError.

/node_modules/soynode/lib/soynode.js:256
var filePaths = files.map(function (file) { return path.resolve(inputDir,
^
TypeError: Object # has no method 'map'
at compileTemplateFilesAndEmit (/node_modules/soynode/lib/soynode.js:256:27)
at StatWatcher. (/node_modules/soynode/lib/soynode.js:473:9)
at StatWatcher.EventEmitter.emit (events.js:98:17)
at StatWatcher._handle.onchange (fs.js:1104:10)