# in the view module
def format_tags(conn, tags) do
tags
|> Enum.map(fn tag -> link(tag.name, to: tag_path(conn, :show, tag.name) end)
|> Enum.intersperse(", ")
end
# in the template
<%= format_tags(@conn, @video.tags) %>
8 Likes