gulp-html2jade

1.1.2 • Public • Published

gulp-html2jade build-status

gulp plugin to HTML to jade format.

Usage

First, install gulp-html2jade as a development dependency:

npm install --save-dev gulp-html2jade

Then, add it to your gulpfile.js:

Say our index.html is :

<html>
  <body>Hello Gnumanth</body>
</html>
var html2jade = require('gulp-html2jade');
var options = {nspaces:2};
gulp.task('default', function(){
  gulp.src('index.html')
    .pipe(html2jade(options))
    .pipe(gulp.dest('dist'));
});

Now dist will have index.jade with content as:

  html
  body Hello Gnumanth

Read more about the options that you could use.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.1.2
    118
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.1.2
    118
  • 1.1.1
    0
  • 1.1.0
    0
  • 1.0.0
    1
  • 0.1.0
    0

Package Sidebar

Install

npm i gulp-html2jade

Weekly Downloads

104

Version

1.1.2

License

BSD-2-Clause

Last publish

Collaborators

  • hemanth