IndieWeb.MF2 (IndieWeb v0.0.66) View Source

General purpose Microfrmats2 methods for IndieWeb use.

Link to this section Summary

Functions

Extracts all of the MF2 items in the provided structure.

Obtains the MF2 object that corresponds to this URL.

Extracts a value from a map representing a MF2 item.

Parses the provided HTML from mf2_html with base_uri as a base and returns a map of MF2 data.

Link to this section Functions

Specs

extract_all(map()) :: [map()]

Extracts all of the MF2 items in the provided structure.

Link to this function

extract_all(mf2, format)

View Source
Link to this function

extract_from_properties(arg1)

View Source
Link to this function

get_item_for_url(mf2, url)

View Source

Specs

get_item_for_url(map(), binary()) :: {:ok, map()} | {:error, :not_found}

Obtains the MF2 object that corresponds to this URL.

Link to this function

get_value!(mf2, property, default_value \\ [])

View Source

Specs

get_value!(map(), binary(), any() | list()) :: binary() | list() | map()

Extracts a value from a map representing a MF2 item.

Link to this function

parse(mf2_html, base_uri)

View Source

Parses the provided HTML from mf2_html with base_uri as a base and returns a map of MF2 data.

Link to this function

parse!(mf2_html, base_uri)

View Source

Specs

parse!(binary(), binary()) :: %{optional(atom() | binary()) => any()}