Is there some alternative to plug
macros in liveview, for example:
plug EnsureRole, [:admin]
def mount(_...) do
# mount called -> plug has passed?
end
It would also help with setting locale in each live view, related: How to handle localisation in live view?