blob: 955f0494b02a9d47dfd28be62b884a4ff91ab16d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
Router.route('/profile/:username', {
name: 'Profile',
template: 'profile',
waitOn: function() {
return Meteor.subscribe('profile', this.params.username);
},
data: function() {
var params = this.params;
return {
profile: function() {
return Users.findOne({ username: params.username });
}
};
}
});
|