How to make the galp add files to the same directories
gulp.task('templates', function() { 'use strict'; var includeDirs = ['app/pages/', 'app/blocks/**']; return gulp.src(['app/pages/*.njk','app/blocks/**/*.njk']) .pipe(rename({extname: ".html"})) // допустим мы поменяли формат .pipe(gulp.dest() // теперь надо вставить файлы в те же директории ... ... });