美文网首页
artTemplate - 使用的一些问题解决方案与心得

artTemplate - 使用的一些问题解决方案与心得

作者: 冯走心 | 来源:发表于2015-12-26 16:06 被阅读276次

cmd格式化的问题

修改\AppData\Roaming\npm\node_modules\tmodjs\src\AOTcompile.js
coolie中使用的cmd模块的格式与传统的seajs不太一样。所以有冲突,修改文件后解决~

压缩后的的非amd或cmd版本与requirejs整合使用无法找到tempalate方法

修改 C:\Users\Administrator\AppData\Roaming\npm\node_modules\tmodjs\src\runtime.js
2:     var runtime = function (window) {
176: '<:namespace:>'
        '<:helpers:>'
        '<:templates:>'
  //添加
  window.template = template;


245: code = '!' + code + '(window)';
        
         return code;

相关文章

网友评论

      本文标题:artTemplate - 使用的一些问题解决方案与心得

      本文链接:https://www.haomeiwen.com/subject/fbkbhttx.html