Your other option is to `put_layout(:none)` in your pipeline/controller, then explicitly render what you need in your views:
def render(“index.html”, assigs) do
render SomeView, “index.html”, Dict.merge(assigns,
layout: SomeLayout,
title: “Some Title”,
widget: render(“widget.html”, assigns)
)
end
This isn’t as convenient as `content_for`, but as a full-time Ruby/Rails developer for the last five years, I haven’t missed content_for yet in Phoenix. I’m open to elegant solutions though if you have ideas :)
Chris
> To view this discussion on the web visit
https://groups.google.com/d/msgid/phoenix-talk/eb3ea5ea-21ce-4d8f-8eb9-3a58b330719f%40googlegroups.com.