Let's say I have something like this:
defmodule MyAppWeb.Live.PostComponents do
use Phoenix.Component
use Phoenix.HTML
def card(assigns) do
~H"""
<div class="row ....">
<nav class="......"></nav>
<%= live_redirect "...", to: @content.slug, class: "stretched-link" %>
<%= if do %>
blah-blah-blah-blah-blah-blah
<% end %>
</div>
"""
end
How to move this code into an html or *.heex file to then call render(....) somehow? The end result must remain the same.