In iron-router I use this before hook to check if logged in:
requireLogin: function(pause) {
if (! Meteor.user()) {
if (Meteor.loggingIn())
this.render(this.loadingTemplate);
else
this.render('accessDenied');
pause();
}
The problem is that I want to switch the layoutTemplate if they are not logged in. I'm using a login drop-down by the way. Advice?