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

一个语法问题 #33

Closed
usherwong opened this issue Jan 12, 2014 · 2 comments
Closed

一个语法问题 #33

usherwong opened this issue Jan 12, 2014 · 2 comments

Comments

@usherwong
Copy link

在模板里面写入

home <% if(user){ %> post logout <% } else { %> login register <% } %> 如果判断中的user不存在,会在页面报错,user is not defined。 怎么解决这类问题呢,改怎么写呢
@zhulinpinyu
Copy link

render时没有传入 user 所以才会报user is not defined

@usherwong
Copy link
Author

在哪里处理呢

@nswbmw nswbmw closed this as completed Nov 24, 2014
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

3 participants