I have scoured the internet high and low and cannot find the answer, hope someone here has an idea of how to do this.
Here is what I need to do but cant figure out how.
I have a live view that I essentially need to turn into a template
It uses the socket to grab user data, runs some pattern matching, and then displays that data in a div right above the navbar.
Think of it like the song bar on Spotify where it has next and previous buttons and displays user data.
This needs to be at the bottom of every live view and cannot be remounted on every live view.
However all layouts are just Heex files so I cant do it there.
If I make it a component and reference it in a layout, I cant add the functionality to push events and make it interactive (even saving and retrieving data in the localstorage).
I dont want to create one mega live view and then toggle the display of other “pages” which are just components, because that’s just cursed and a massive tech debt issue.
Is there some easy way of just having a live view view that I can just render all the other live views inside of that I just dont know of?
I am considering some desperate alternatives. Would love to hear your ideas.