【发布时间】:2014-09-07 23:21:47
【问题描述】:
我正在尝试实现这条路线:
@route "buildingSpaceTenant",
path: "/buildings/:_building_id/spaces/:_space_id/tenants/:_id/communications"
template: "tenant"
yieldTemplates: {
Session.get("current_tenant_subtemplate"): {to: "subTemplate"}
}
但显然我不能以这种方式使用会话对象。
<runJavaScript-30>:148:11: client/routes/tenantsRoute.coffee:44: unexpected . (compiling client/routes/tenantsRoute.coffee) (at handler)
什么是正确的方法?
【问题讨论】:
标签: meteor iron-router