1
0
Fork 0
mirror of https://framagit.org/framasoft/mobilizon.git synced 2024-12-27 18:31:07 +00:00
mobilizon/lib/service/metadata/metadata.ex

14 lines
397 B
Elixir
Raw Normal View History

2020-01-22 01:14:42 +00:00
defprotocol Mobilizon.Service.Metadata do
@moduledoc """
Service that allows producing metadata HTML tags about content
2020-01-22 01:14:42 +00:00
"""
@doc """
Build tags for an entity. Returns a list of `t:Phoenix.HTML.safe/0` tags.
Locale can be provided to generate fallback descriptions.
"""
@spec build_tags(any(), String.t()) :: list(Phoenix.HTML.safe())
def build_tags(entity, locale \\ "en")
2020-01-22 01:14:42 +00:00
end