Open programmatio opened 9 years ago
now i compile each jade file to a php file, use php framework or require/include to join pieces up. may be i need to add an option for jade, but i`m not sure yet
option for jade it is sounds as a good idea. at least 'pretty'! It is no pretty, it's compressed by default ( It's seems doesn't work:
gulp.task('jade', function(){
var stream = gulp
.src([ '/home/user/workspace/**/*.jade' ])
.pipe(cache('jade'))
.pipe(plumber({ errorHandler: reportError }))
.pipe(jade({ "pretty": true }))
.pipe(plumber.stop())
.pipe(rename('.phtml'))
.pipe(gulp.dest('../some/path/'));
return stream
.pipe(notify({
"title":'JADE',
"message": 'Successfully compiled',
"subtitle": "Project web site",
"onLast": true,
}));
});
I'm Getting this error in Gulp
/Users/SomeUser/Project/node_modules/gulp-jade-for-php/node_modules/jade/lib/runtime.js:231 throw err; ^ Error: Jade:8 6| .page-container 7| .wrapper
the "basedir" option is required to use "include" with "absolute" paths
Tried to do this