Cnode源码中:
router:// home page
router.get('/’, site.index);在index里渲染了以下res.render('index’, {
topics: topics,
current_page: page,
list_topic_count: limit,
tops: tops,
no_reply_topics: no_reply_topics,
pages: pages,
tabs: config.tabs,
tab: tab,
pageTitle: tabName && (tabName + ‘版块’),
});在view中<% if (typeof(user) !== ‘undefined’ || current_user) { %>之前index中并没有渲染user 或者current_user啊??
@alsotang
...
继续阅读
(18)