html-list

1.0.0 • Public • Published

html-list

html使用

var htmlList = require('html-list');
htmlList({
    cwd: 'src/p', //相对跟目录
    src: ['**/**.html','!**/**.jst.html','!**/**.xtpl.html'], //选择文件 
    handData: fn // 对数据进行处理 [{name:xx,url:xxx}] 
    macthReg: /<!--\s*html\slist[^-]*-->/g  ///替换区域
    templatePath: '' //html template 的路径 没有对应默认 __dirname+template.html
   	distPath: '' //输出路径 没有输出content
})

效果

bug 反馈 zhoujianlin8@gmail.com

/html-list/

    Package Sidebar

    Install

    npm i html-list

    Weekly Downloads

    3

    Version

    1.0.0

    License

    none

    Last publish

    Collaborators

    • zhoujianlin