Nitroux.Utils (nitroux v0.4.3)
Summary
Functions
Generates dynamic open and closing tags around content iex> Nitroux.Utils.tag("div", []) "<div></div>"
Types
Link to this type
tag()
@type tag() :: String.t()
Functions
Link to this function
tag(name, attrs, container \\ true)
Generates dynamic open and closing tags around content iex> Nitroux.Utils.tag("div", []) "<div></div>"
iex> Nitroux.Utils.tag("div", ["hello world"]) "<div>hello world</div>"
iex> Nitroux.Utils.tag("div", ["hello", " ", "world"]) "<div>hello world</div>"
Link to this function