How to set a layout for a certain action?

How to set a layout for a certain action/page of a controller? Not for a whole controller.

From the documentation it reads as if Phoenix.Controller.put_layout/2 is what you are searching for.