What I’m trying to do:
I have 3 pages under a “master” layout. Just wondering if it’s possible to reference some of the self.items dicts when the master layout initializes?
For example:
MasterReact has:
self.item = {
'logged_in_user': anvil.users.get_user(),
'log_description': f"Account Log Out: {anvil.users.get_user()['email']}" if anvil.users.get_user() else "Log In"
}
I’d like to reference these items in a page that uses this master layout.
What I’ve tried and what’s not working:
Doesn’t seem like the classes in the webpage are inheriting from the the master template so can’t reference it.
Clone link:
share a copy of your app