Doesn’t need to be a macro:
def render_in(module, template, assigns \\ %{}, do: yield),
do: Phoenix.View.render(module, template, put_in(assigns[:yield], yield))
Doesn’t need to be a macro:
def render_in(module, template, assigns \\ %{}, do: yield),
do: Phoenix.View.render(module, template, put_in(assigns[:yield], yield))