var pug = require('gulp-pug');
gulp.task('pug', function() {
return gulp.src('app/pug/**/*.pug')
.pipe( pug({pretty: true}) )
.pipe(rename(function (path) {
path.extname = ".php"
}))
.pipe(gulp.dest('app/'))
.pipe(browserSync.reload({stream: true}));
});