84669 person learning
152542 person learning
20005 person learning
5487 person learning
7821 person learning
359900 person learning
3350 person learning
180660 person learning
48569 person learning
18603 person learning
40936 person learning
1549 person learning
1183 person learning
32909 person learning
Why do I still export .ejs like this
gulp.task('ejs', function() {
gulp.src('html/index.ejs') .pipe(ejs({},{ext: '.html'})) .pipe(gulp.dest('./dist'));
});
认证高级PHP讲师
gulp.task('ejs', function() { gulp.src('html/index.ejs') .pipe(ejs({},{},{ext: '.html'})) .pipe(gulp.dest('./dist')); });
ejs(data, options, settings)
Look at the official website, the second parameter is options, and the third parameter is settings. What you wrote above is assigning {ext: '.html'} to options. Official website address
{ext: '.html'}
Look at the official website, the second parameter is options, and the third parameter is settings. What you wrote above is assigning
{ext: '.html'}
to options.Official website address