1
0
Fork 0
mirror of https://github.com/openstf/stf synced 2025-10-03 17:59:28 +02:00

Fix gulp jade so it doesn't complain on undefined locals.

This commit is contained in:
Gunther Brunner 2014-09-03 19:39:28 +09:00
parent fe7452e9f7
commit b38972eeeb

View file

@ -154,7 +154,15 @@ gulp.task('jade', function (cb) {
gulp.src([
'./res/**/*.jade', '!./res/bower_components/**'
])
.pipe(jade())
.pipe(jade({
locals: {
// So res/views/docs.jade doesn't complain
markdownFile: {
parseContent: function() {
}
}
}
}))
.pipe(gulp.dest('./tmp/html/'))
cb()
})