Nitroux.Utils (nitroux v0.3.2)

Link to this section Summary

Functions

Generates dynamic open and closing tags around content iex> Nitroux.Utils.tag("div", ["hello", " ", "world"]) "<div>hello world</div>"

Link to this section Functions

Link to this function

tag(name, attrs, container \\ true)

Generates dynamic open and closing tags around content iex> Nitroux.Utils.tag("div", ["hello", " ", "world"]) "<div>hello world</div>"

Nitroux.Utils.tag("div", []) "<div>hello world</div>"

Nitroux.Utils.tag("div", [html: "hello world"]) "<div>hello world</div>"

Nitroux.Utils.tag("div", [class: "test", html: "hello world"]) "<div class="test">hello world</div>"