Multiple views (logged out and logged in)

I would like to create 2 views:

  • One for not logged in
  • One for logged in

When starting the app I will do a session token request to check if someone is logged in or not.

The one not logged in must show the pages/login.html (full app no top bar or tabs) page and the logged in must show the pages/live.html page in a tab view.

If not logged in the compelete tab view must be unloaded and vice versa.

Even better the tab view code (now on index.html) is in a file loggedin.html (containing the tab view) or something to leave the index.html empty.