Router.waitOn(function() {
	return Meteor.subscribe("extraUserData");
});

Router.onBeforeAction(function() {
	if(Meteor.user()) {
		this.next();
	}
	else {
		this.render("entry");
	}
});

Router.route("/", {
	name: "gamelist",
	template: "gamelist",
	waitOn: function() {
		return [Meteor.subscribe("gameDefinitions")];
	}
});

Router.route("/lobby/:_id", {
	name: "lobby",
	template: "lobby",
	waitOn: function() {
		return [Meteor.subscribe("gameDefinitions"), Meteor.subscribe("gameData", this.params._id)];
	},
	data: function() {
		return Games.findOne(this.params._id);
	}
});
@@ -4,15 +4,31 @@
 ter.
+configure(%7B%0A%09%22
 waitOn
-(
+%22: 
 func
@@ -36,16 +36,17 @@
 ion() %7B%0A
+%09
 %09return 
@@ -80,28 +80,22 @@
 Data%22);%0A
-%7D);%0A%0ARouter.
+%09%7D,%0A%09%22
 onBefore
@@ -100,17 +100,19 @@
 reAction
-(
+%22: 
 function
@@ -116,16 +116,17 @@
 ion() %7B%0A
+%09
 %09if(Mete
@@ -136,24 +136,25 @@
 user()) %7B%0A%09%09
+%09
 this.next();
@@ -154,19 +154,21 @@
 next();%0A
+%09
 %09%7D%0A
+%09
 %09else %7B%0A
@@ -169,16 +169,17 @@
 lse %7B%0A%09%09
+%09
 this.ren
@@ -192,16 +192,20 @@
 ntry%22);%0A
+%09%09%7D%0A
 %09%7D%0A%7D);%0A%0A

Change syntax of router configuration