Show session info on each page, without typing same code 20 times
When I have an app that needs to include a "Logged in user: " on the top of each page, only when the user is logged in. How can i do this in Tiggzi?
I hope I don't have to include the same code (for example, checking the localStorage for a value and then display the label on top of the page accordingly) on every page of the app? Because if I change 1 thing (for example the localstorage variable name), I have to change it in 20 pages, it's not possible to maintain code like this with such redundancy.