Metatags (metatags v0.3.2) View Source

Metatags is used to provide an easy API to print out context-specific metatags.

Link to this section Summary

Functions

Turns metadata information into HTML tags

Puts a key and a value in the on a %Conn{} struct

Link to this section Types

Specs

metatag_value() ::
  String.t() | [String.t()] | {String.t(), Keyword.t()} | map() | nil

Link to this section Functions

Specs

Puts a key and a value in the on a %Conn{} struct

example:

  iex> conn = %Conn{}
  iex> Metatags.put(conn, "title", "Welcome!")
  %Conn{private: %{metadata: %{"title" => "Welcome!"}}}
Link to this function

put(conn, key, value, extra_attributes)

View Source

Specs