gulp-xhtml
v0.2.1
Published
A xtemplate plugin for gulp
Downloads
25
Readme
gulp-xhtml
A gulp plugin for compiling xTemplate templates.
Install
# npm
$ npm install gulp gulp-xhtml --save-dev
# or yarn
$ yarn add gulp gulp-xhtml -D
Usage
demo.xtpl
<p>{{ message }}</p>
gulpfile.js
var xhtml = require('gulp-xhtml');
gulp.task('views', () => {
return gulp.src('views/*.xtpl')
.pipe(xhtml())
.pipe(gulp.dest('dist'))
});