I feel I need to mention this in case you haven’t thought of it, in your controller you can also simply call
put_layout/1instead of using a separate plug for it:
Thanks @hlx, I thought of that after seeing your original example disabling it – appreciated!


















