aui / tmodjs

前端模板外置解决方案
666 stars 189 forks source link

编译失败 #91

Closed szyjava closed 9 years ago

szyjava commented 9 years ago

"tmodjs-config": { "source": "./static/tpl", "output": "./build", "charset": "utf-8", "combo": true, "helpers": null, "syntax": "native", "minify": true, "async": false, "engine": true, "escape":false, "cache":false, "type": "default" }

配置的简易语法

{{title}}

可是输出成原文件啦 传入的变量就没起作用 直接返回来原字符串

aui commented 9 years ago

"syntax": "simple" 才是你要的语法

szyjava commented 9 years ago

ok 发现了也改正过来啦 可是在输出的template.js文件中 压缩出错啦 { [Error: Uglification failed. Unexpected token: punc ()). 这是为什么啊?