📜  在 phoenix 渲染框架上合并 json 文件 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:04:29.688000             🧑  作者: Mango

代码示例1
def render("event_all.json", %{event: event}) do
     render("event.json", %{event: event})
     |> Map.put_new(:activities, render_many(event.activities, Project.ActivityView, "activity.json", as: :activity))
end