dotcore64 / gulp-html2pug

Convert html files to pug

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

gulp-html2pug

Build Status npm package Coverage Status

Convert html files to pug

Install

$ npm install --save-dev gulp-html2pug

Usage

Convert index.html to pug/index.pug:

import gulp from 'gulp';
import html2pug from 'gulp-html2pug';

gulp.task('pug', () => 
  gulp.src('index.html')
    .pipe(html2pug(/* options for html2pug such as { fragment: true } */))
    .pipe(gulp.dest('pug'))
);

License

See the LICENSE file for license rights and limitations (MIT).

About

Convert html files to pug

License:MIT License


Languages

Language:JavaScript 96.5%Language:HTML 3.5%