-
Warning: Cannot read property 'tmodjs' of undefined Use --force to continue.
tmod: {
template: {
src: './/detail.html',
dest: './/template.js',
…
-
tmodjs会编译模板成js模块,对于img的src资源没有任何处理 导致fis3 md5图片资源后找不到了
有没有好的解决方法?
附tmodjs模板地址:https://github.com/aui/tmodjs
谢谢
-
1. [ ] 支持配置`.tmodignore`,排除文件 https://github.com/aui/tmodjs/issues/21
2. [ ] 支持 GBK2312 编码 https://github.com/aui/tmodjs/issues/32
3. [ ] `combo`支持自定义打包合并模板 https://github.com/aui/tmodjs/issues/36
4. …
-
{ [Error: Uglification failed.
Unexpected token: punc ()).
Line 177 in e:/workspace/OA/build/template.js
]
origError:
{ message: 'Unexpected token: punc ())',
line: 177,
col: 12,
…
-
```
if (!json) {
json = {
"name": 'template',
"version": '1.0.0',
"dependencies": {
"tmodjs": "1.0.0"
}…
-
您若在项目中使用 TmodJS,欢迎在本页留下公司或项目的信息,收集后我们将展示在 TmodJS 未来的官方网站中,例如:
```
微博:[@xxx](http://weibo.com/xxx)
公司:[xxx](http://www.xxx.com)
项目:XXX
```
感谢您对开源项目的支持!
(注:登记完毕将删除留言)
-
使用tmodjs预编译html模板成js文件,编译出来的页面代码如下:
![image](https://cloud.githubusercontent.com/assets/3736128/3640450/2543c4a4-10a1-11e4-89ab-d3dc87537d2d.png)
在页面当中运行代码的时候 页面如下图:
![image](https://cloud.githubuse…
-
grunt-tmod很老的tmodjs,很多配置项都没有,代码也有一些bug,我写了一个新版本tmodjs的grunt-tmodjs,我觉着应该更新了。这是地址
https://www.npmjs.org/package/grunt-tmodjs
如果没问题的话,希望可以把grunt-tmod替换掉
-
```
edward$ grunt tmod
Running "tmod:dev" (tmod) task
TmodJS - Template Compiler
You must upgrade to the latest version of TmodJS!
```
不明白这里的升级是要升级什么。
-
我使用的是windows 7系统的git shell。
一开始,package.json文件原本是(直接拷贝的test目录的)
```
{
"name": "template",
"version": "1.0.1",
"dependencies": {
"tmodjs": "1.0.1-rc9"
},
"tmodjs-config": …