1.0.5 • Published 8 years ago
gulp-html-header v1.0.5
gulp-html-header
替换静态html下的头部文件
example
_header.html
<header></header>
template.html
<link rel="template" href="_header.html">
<div class="main"></div>
gulpfile.js
var gulp = require('gulp');
var template = require('gulp-html-header');
gulp.task('template', function() {
gulp.src('template.html')
.pipe(template())
.pipe(gulp.dest('html'))
})
result
<header></header>
<div class="main"></div>