defmodule SloaneSH.Layouts.Partials do @moduledoc """ HTML partials for use in HTML layouts """ require EEx EEx.function_from_string( :def, :header, ~S"""

sloane.sh

""", [:ctx, :attrs] ) defp cx(classes) do classes |> Enum.map(fn {_, _} = t -> t c -> {c, true} end) |> Enum.filter(fn {_, v} -> !!v end) |> Enum.map_join(" ", fn {class, _} -> class end) end end