模板atSignIn在哪里定义?

时间:2015-09-02 01:14:37

标签: meteor iron-router meteor-accounts

我下载了一个名为MeteorAdmin的Meteor Starter项目。

此项目使用meteor-usersaccounts包,其中一个html文件中包含此代码{{pathFor route='atSignIn'}}

atSignIn没有在任何地方定义,我怀疑它是在useraccounts包中定义但是找不到它,任何人都有想法?

1 个答案:

答案 0 :(得分:1)

this file的第45-56行。

// Allowed routes along with theirs default configuration values
AccountsTemplates.ROUTE_DEFAULT = {
  changePwd:      { name: "atChangePwd",      path: "/change-password"},
  enrollAccount:  { name: "atEnrollAccount",  path: "/enroll-account"},
  ensureSignedIn: { name: "atEnsureSignedIn", path: null},
  forgotPwd:      { name: "atForgotPwd",      path: "/forgot-password"},
  resetPwd:       { name: "atResetPwd",       path: "/reset-password"},
  signIn:         { name: "atSignIn",         path: "/sign-in"},
  signUp:         { name: "atSignUp",         path: "/sign-up"},
  verifyEmail:    { name: "atVerifyEmail",    path: "/verify-email"},
  resendVerificationEmail: { name: "atResendVerificationEmail", path: "/send-again"}
};