gulp-wrapped-html
v0.1.0
Published
append content to html by selector
Downloads
2
Readme
Usage
wrappedHtml(html,selector);
var wrappedHtml = require('gulp-wrapped-html');
gulp.task('convert', function() {
var html = '<html>' +
'<head>' +
'<title> test tpl </title>' +
'</head>' +
'<body>' +
'<div class="content"></div>' +
'</body>' +
'</html>';
gulp.src('./src/*.txt')
.pipe(wrappedHtml(html,'.content'))
.pipe(gulp.dest('./html/'))
});
LICENSE
MIT