defmodule SloaneSH.Layouts.Partials do @moduledoc """ HTML partials for use in HTML layouts """ require EEx import SloaneSH.Layouts.Helpers, warn: false EEx.function_from_string( :def, :header, ~S"""
<%= if attrs[:title] do %>

<%= attrs[:title] %>

<% end %> <%= if attrs[:date] do %> <%= fmt_date(attrs[:date]) %> <% end %>
sloane.sh <%= picture(ctx, "/assets/images/heart.png", "a purple heart emoji", "w-4 h-4") %>
""", [:ctx, :attrs] ) end