0.2.1 • Published 7 years ago

gulp-xhtml v0.2.1

Weekly downloads
1
License
MIT
Repository
github
Last release
7 years ago

gulp-xhtml

NPM version NPM download Build Status Dependency Status devDependency Status Code Style

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'))
});

License

MIT © 汪磊