node package manager
Stop writing boring code. Discover, share, and reuse within your team. Create a free org »


gulp-html2jade build-status

gulp plugin to HTML to jade format.


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 :

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

Now dist will have index.jade with content as:

  body Hello Gnumanth

Read more about the options that you could use.