IT博客汇
  • 首页
  • 精华
  • 技术
  • 设计
  • 资讯
  • 扯淡
  • 权利声明
  • 登录 注册

    Cnode源码疑问

    yxfanxiao发表于 2015-09-02 05:18:03
    love 0

    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



沪ICP备19023445号-2号
友情链接