metatags v0.2.2 Metatags
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
Link to this type
metatag_value()
Link to this section Functions
Link to this function
print_tags(conn)
print_tags(conn)
print_tags(Plug.Conn.t()) :: Phoenix.HTML.Safe.t()
print_tags(Plug.Conn.t()) :: Phoenix.HTML.Safe.t()
Turns metadata information into HTML tags
Link to this function
put(conn, key, value)
put(conn, key, value)
put(Plug.Conn.t(), atom(), metatag_value()) :: struct()
put(Plug.Conn.t(), String.t(), metatag_value()) :: struct()
put(Plug.Conn.t(), atom(), metatag_value()) :: struct()
put(Plug.Conn.t(), String.t(), metatag_value()) :: struct()
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!"}}}