View Source Mobilizon.Service.Metadata protocol (Mobilizon v5.0.0-beta.1)

Service that allows producing metadata HTML tags about content

Summary

Types

t()

All the types that implement this protocol.

Functions

Build tags for an entity. Returns a list of Phoenix.HTML.safe/0 tags.

Types

@type t() :: term()

All the types that implement this protocol.

Functions

Link to this function

build_tags(entity, locale \\ "en")

View Source
@spec build_tags(any(), String.t()) :: [Phoenix.HTML.safe()]

Build tags for an entity. Returns a list of Phoenix.HTML.safe/0 tags.

Locale can be provided to generate fallback descriptions.