Expand description
Rempl is a simple toolkit for creating html components directly within your rust code. The intended purpose is to use this library for HTML templating.
The main things to look at are the html
and
component
macros.
All of the HTML structs (HtmlTerm
, HtmlElement
,
HtmlNode
) can be turned into a html string simply
be using the std::fmt::Display
trait.
Macros§
- html
- Allows you to write html directly within your source file.
Structs§
- Html
Element - A html element
- Html
Node - Represents the children of a HTML element.
Enums§
- Html
Term - A rust native description of a html term.
Attribute Macros§
- component
- Allows you to create a component which can be called as a new HTML tag