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

辅助方法,帮忙看看是否用的不对 #14

Closed
chtdomo opened this issue Mar 4, 2013 · 1 comment
Closed

辅助方法,帮忙看看是否用的不对 #14

chtdomo opened this issue Mar 4, 2013 · 1 comment

Comments

@chtdomo
Copy link

chtdomo commented Mar 4, 2013

正在试用artTemplate,增加辅助方法
调用:
template.helper('$toDate', function (content) {
return content;
});
var html = template.render('category_t', data);
$("#Items").html(html);
模版:
<%= $toDate(list[i].update_time)%>

输出:
{Template Error}

@aui
Copy link
Owner

aui commented Mar 4, 2013

模板写错了:目测右边有个中文括号。
另外开启浏览器控制台可以看到具体错误信息

@aui aui closed this as completed Mar 25, 2013
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