Take a look at how LiveDashboard achieves this: live.html.leex, live_helpers.ex, menu_live.ex
You can assign a menu
variable inside your liveviews that you can also pass to the logic holding your menu (be it a live_view, live_component or even a simple template). But you will need to move it from your root
layout inside your live
layout.