How to Render Dynamic Variables in a Phoenix LiveView
From ElixirBlocks
defmodule AppWeb.PageLive do use AppWeb, :live_view def mount(_params, _session, socket) do {:ok, assign(socket, greeting: "Hello World")} end def render(assigns) do ~H""" <%= assigns.greeting %> """ end end