How do I render a function within an html.eex template?

I have an html.eex file and want to render a table inside of that shows when the user has logged in in the past and from what location or computer. I have a route that already has this functionality built out. How do I display this on my html page?

This would be how I would create a link to it:

<%= link "Sessions", to: Routes.session_path(@conn, :index) %>

How would I render on the same page, without creating a link to a new page?

https://hexdocs.pm/phoenix/templates.html

Please check that link if you are looking for shared templates.