Hi im using gulp to automate my compiling of .ejs files into html files, but when gulp-ejs compiles the files, it out it as ejs. I thing i need to define the .html extension in the ejs() object, but I can get it to work.
This is what I got so far:
gulp.task('ejs', function(){
return gulp.src('src/templates/**/*.ejs')
.pipe(ejs())
.pipe(gulp.dest('builds/dev/'))
});
I have also tried this:
gulp.task('ejs', function(){
return gulp.src('src/templates/**/*.ejs')
.pipe(ejs({setting: '.html'}))
.pipe(gulp.dest('builds/dev/'))
});
Br M