sneeze v0.2.1 Sneeze
Summary
Functions
Render a data-structure, containing ‘elements’ to html. An element is either:
- [tag, attribute_map | body]
- [tag, attribute_map]
- [tag | body]
- [tag]
- [:@__raw_html, html_string]
- A bare, stringable value (such as a string or number)
- A list of elements Examples:
render([:p, %{class: "outlined"}, "hello"])
render([:br])
render([[:span, "one"], [:span, "two"]])
render([:ul, %{id: "some-list"},
[:li, [:a, %{href: "/"}, "Home"]],
[:li, [:a, %{href: "/about"}, "About"]]])
Functions
Render a data-structure, containing ‘elements’ to html. An element is either:
- [tag, attribute_map | body]
- [tag, attribute_map]
- [tag | body]
- [tag]
- [:@__raw_html, html_string]
- A bare, stringable value (such as a string or number)
- A list of elements Examples:
render([:p, %{class: "outlined"}, "hello"])
render([:br])
render([[:span, "one"], [:span, "two"]])
render([:ul, %{id: "some-list"},
[:li, [:a, %{href: "/"}, "Home"]],
[:li, [:a, %{href: "/about"}, "About"]]])