Drop the eex template and directly use the webpack index.html

Partly reverts ff7fd460

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel
2019-07-04 17:34:59 +02:00
parent 98888c95d6
commit 2749989a28
6 changed files with 37 additions and 25 deletions

View File

@@ -4,3 +4,17 @@ defprotocol Mobilizon.Service.Metadata do
"""
def build_tags(entity)
end
defmodule Mobilizon.Service.MetadataUtils do
@moduledoc """
Tools to convert tags to string
"""
alias Phoenix.HTML
def stringify_tags(tags) do
Enum.reduce(tags, "", &stringify_tag/2)
end
defp stringify_tag(tag, acc) when is_tuple(tag), do: acc <> HTML.safe_to_string(tag)
defp stringify_tag(tag, acc) when is_binary(tag), do: acc <> tag
end