Which of these expressions is the ‘render’ function defined?
import Plug.Conn
import HelloWeb.Gettext
alias HelloWeb.Router.Helpers, as: Routes
Which of these expressions is the ‘render’ function defined?
import Plug.Conn
import HelloWeb.Gettext
alias HelloWeb.Router.Helpers, as: Routes
render is a Phoenix.Controller function: Phoenix.Controller — Phoenix v1.7.10
but there is also a render function in Phoenix.View: https://hexdocs.pm/phoenix/Phoenix.View.html#render/3
In MyApp_web.ex, from where you copied that fragment, the line:
use Phoenix.Controller
Is where render comes from.