0.0.1 • Published 9 years ago
gulp-file-wrapper v0.0.1
gulp-file-wrapper
gulp-file-wrapper allows you to inject a file within another.
layout.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title></title>
</head>
<body>
%%yield%%
</body>
</html>
index.html
<p>INDEX.HTML</p>
about.html
<p>ABOUT.HTML</p>
gulpfile.js
var gulp = require('gulp'),
layout = require('gulp-file-wrapper');
gulp.task('default', function(){
gulp.src([ 'index.html', 'about.html' ]).
pipe(layout('layout.html')).
pipe(gulp.dest('dest'));
});
0.0.1
9 years ago