Covert HTML files to JADE (Uses html2jade)
MIT License
Convert HTML to JADE.
npm install grunt-html2jade --save-dev
Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:
grunt.loadNpmTasks('grunt-html2jade');
In your project's Gruntfile, add a section named html2jade
to the data object passed into grunt.initConfig()
.
grunt.initConfig({
html2jade: {
options: {
// Task-specific options go here.
},
your_target: {
// Target-specific file lists and/or options go here.
},
},
});
{
double:true,
numeric:false,
scalate:false,
nspaces:2,
tabs:false,
donotencode:false,
bodyless:false,
}
Read more about the options.
In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using Grunt.