grunt-html2jade

2019-06-14 admin

grunt-html2jade是什么

什么是grunt-html2jade,Convert HTML to JADE.

grunt-html2jade使用教程帮助文档

grunt-html2jade build-status

Convert HTML to JADE.

How to use this?

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');

The “html2jade” task

Overview

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.
    },
  },
});

Options

{
        double:true,
        numeric:false,
        scalate:false,
        nspaces:2,
        tabs:false,
        donotencode:false,
        bodyless:false,
}

Read more about the options.

Contributing

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.

本站文章除注明转载外,均为本站原创或编译。欢迎任何形式的转载,但请务必注明出处。

转载请注明:文章转载自 JavaScript中文网 [https://www.javascriptcn.com]

本文地址:https://www.javascriptcn.com/read-67282.html

文章标题:grunt-html2jade

回到顶部