It’s been a while since I’ve used Elixir/Phoenix and I’m finding the changes to views in Phoenix 1.17+ difficult to grok.
I’m trying to render a plain-text template from a standard (non-LiveView) controller and capture the render output into a variable , but can’t figure out how to do it. It seems like this should be straightforward, but even LLMs are leading me to dead ends (Phoenix.View.render_to_string(), which is apparently removed in 1.17+).
I want to use a template to render a plain-text string, and then capture the render output. Can anyone point me in the right direction?