Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

编译失败 #91

Closed
szyjava opened this issue Jul 11, 2015 · 2 comments
Closed

编译失败 #91

szyjava opened this issue Jul 11, 2015 · 2 comments

Comments

@szyjava
Copy link

szyjava commented Jul 11, 2015

"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
Copy link
Owner

aui commented Jul 13, 2015

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

@aui aui closed this as completed Jul 13, 2015
@szyjava
Copy link
Author

szyjava commented Jul 13, 2015

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants