const data1 = require("./data.page1.json");
const data2 = require("./data.page2.json");
const data3 = require("./data.page3.json");
function ejsTemplate() {
return gulp.src(paths.ejs)
.pipe(ejs(data1)) <<<- тут
.pipe(rename({ extname: '.html' }))
.pipe(gulp.dest(paths.dist));
}