Skip to content

cv711/gulp-html2jade

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

gulp plugin to convert HTML to Jade format.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published