Understanding the templating engine & middleware
Ok, this may be obvious, but I just don't see it...
Why does the navbar (menu bar) not load on the login page?
It looks like it's set up the same way as the other routes & templates which means
header.tplwould load which in turn would also load
What am I missing here?
EDIT: Maybe it's not so obvious after all...?
The partials/menu.tpl has bunch of IF statements so it doesn't render some parts if user is not logged in. For example on the login page. https://github.com/NodeBB/nodebb-theme-vanilla/blob/master/templates/partials/menu.tpl#L85-L172
Ya, so I was dumb...I have a local dev instance and a staging server. I was playing around with some things and forgot to switch the theme back to vanilla which explains why I was missing the navbar for the login screen...boo me.
But yes, thanks for pointing that out. The template engine and middleware are making a lot more sense now after looking through the source for the last 2 days...
I'm going to start looking to add/update the documentation here soon...some of the stuff can drive you crazy if you aren't familiar with the version changes.