0.0.1 • Published 10 years ago

atool-html2js v0.0.1

Weekly downloads
-
License
MIT
Repository
gitlab
Last release
10 years ago

atool-html2js

angular template 将多个html 文件转为一个angular模块

####使用

  var content = html2js({
    cwd: path.join(baseSrc,'views'),
    rename: function(url){
      return url.replace(path.join(baseSrc,'views'),'views');
    },htmlmin: {
      collapseWhitespace: true
    }});
  //scripts 目录存在不检查
  fs.writeFileSync(path.join(baseSrc,'scripts/project.tpl.js'),content);

###详细api参考代码

####bug 反馈 zhoujianlin8@gmail.com

0.0.1

10 years ago