ratchet v0.2.1 Ratchet.Data
Summary
Functions
Extract attributes from a data property
iex> Data.attributes({"", href: "https://google.com", rel: "nofollow"}, [])
{:safe, ~S(href="https://google.com" rel="nofollow")}
iex> Data.attributes("lolwat", [{"data-prop", "joke"}])
{:safe, ~S(data-prop="joke")}