View Source Liquor (Liquor Tags v1.0.2)

Contains the main functions to initialize and render the tags.

Summary

Types

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

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

Link to this function

init(content, tags, fetch)

View Source
@spec init(String.t(), [Liquor.Tags.Tag.t()], (String.t() -> String.t())) :: t()

Initializes the Liquor map with content, tags and fetch function.

Link to this function

render(content, tags, fetch)

View Source
@spec render(String.t(), [Liquor.Tags.Tag.t()], (String.t() -> String.t())) ::
  String.t()

Initializes, finds and render the tags