View Source Liquor (Liquor Tags v1.0.2)
Contains the main functions to initialize and render the tags.
Summary
Types
Initialized the map with the content, tags and fetch. Fetch must call the URL and return the HTML string to extract the OpenGraph data.
Functions
Initializes the Liquor map with content, tags and fetch function.
Initializes, finds and render the tags
Types
@type t() :: %{ content: String.t(), tags: [Liquor.Tags.Tag.t()], fetch: (String.t() -> String.t()) }
Initialized the map with the content, tags and fetch. Fetch must call the URL and return the HTML string to extract the OpenGraph data.
Functions
@spec init(String.t(), [Liquor.Tags.Tag.t()], (String.t() -> String.t())) :: t()
Initializes the Liquor map with content, tags and fetch function.
@spec render(String.t(), [Liquor.Tags.Tag.t()], (String.t() -> String.t())) :: String.t()
Initializes, finds and render the tags