html-list-middleware

0.0.4 • Public • Published

html-list-middleware

html使用

var htmlList = require('html-list-middleware');
app.use(htmlList({
    pathname: '/index.html', //对应列表页面地址
    cwd: 'src/p', //相对跟目录
    src: ['**/**.html','!**/**.jst.html','!**/**.xtpl.html'], //选择文件
    macthReg: /<!--\s*html\slist[^-]*-->/g  ///替换区域
    templatePath: '' //html template 的路径 没有对应默认 __dirname+template.html
    isExpress: false // 是否是express
  }
));

效果

bug 反馈 zhoujianlin8@gmail.com

Readme

Keywords

Package Sidebar

Install

npm i html-list-middleware

Weekly Downloads

2

Version

0.0.4

License

MIT

Last publish

Collaborators

  • zhoujianlin