How to write put_layout plug in Phoenix 1.7?

It is not backwards incompatible. The scenario we warn only happens when you mix the new style (which by definition did not exist before and by definition cannot be incompatible) with the old style. If you are getting the warning, it means you are mixing both styles and certainly one of them is not working as expected.

Ok, I agree it’s fine then :blush: