您最多能選擇 25 個主題
主題必須以字母或數字為開頭,可包含連接號「-」且最長為 35 個字元。
25 行
532 B
25 行
532 B
import "/client/templates/loading.html"
|
|
import "/client/templates/user_page.html"
|
|
import "/client/templates/not_found.html"
|
|
|
|
Router.configure({
|
|
layoutTemplate: 'mainLayout',
|
|
loadingTemplate: 'loading',
|
|
notFoundTemplate: 'notFound',
|
|
waitOn: function () {
|
|
return Meteor.subscribe("url_res")
|
|
}
|
|
})
|
|
|
|
// Meteor.subscribe('user_res')
|
|
|
|
Router.route("/")
|
|
|
|
Router.route("/nelson", {name: 'mainItem'})
|
|
|
|
Router.route("/user/:_id", {
|
|
name: 'userPage'
|
|
})
|
|
|
|
Router.onBeforeAction('dataNotFound',{only: 'userPage'})
|
|
|
|
|