Blaze Layout help


#1

Hey guys I’m doing a tutorial on extending the users class,
Link to the tutorial
In every path I try, i always get a blank page, and i’m not understanding why.
Any help would be appreciated.
This is my routes.js file:

FlowRouter.route('/', {
   name: 'home',
   action: function() {
   BlazeLayout.render("mainLayout", {
      content: "home"
   });
  }
});
FlowRouter.route('/login', {
   name: 'login',
   action: function() {
   BlazeLayout.render("mainLayout", {
      content: "login"
   });
  }
});
FlowRouter.route('/register', {
   name: 'register',
   action: function() {
   BlazeLayout.render("mainLayout", {
      content: "register"
   });
  }
});

#2

Check your console for any errors.

But i would guess that the templates either don’t exists or are not loaded properly.


#3

The are no errors in the console, and the templates do exist.
Here is the repo if you want to have a quick look