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