2023-03-05 16:07:40 +01:00
|
|
|
defmodule ChiyaWeb.PageHTML do
|
2023-03-31 17:00:09 +02:00
|
|
|
use ChiyaWeb, :html_public
|
2023-03-05 16:07:40 +01:00
|
|
|
|
|
|
|
embed_templates "page_html/*"
|
2023-04-10 19:18:27 +02:00
|
|
|
|
|
|
|
def tag_list([]), do: "No Tags"
|
|
|
|
def tag_list(tags), do: Enum.map_join(tags, ", ", fn t -> t.name end)
|
2023-03-05 16:07:40 +01:00
|
|
|
end
|