gulp-xhtml

0.2.1 • Public • Published

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 © 汪磊

Package Sidebar

Install

npm i gulp-xhtml

Weekly Downloads

8

Version

0.2.1

License

MIT

Last publish

Collaborators

  • zce
  • zceme