| Crates.io | bloom-html |
| lib.rs | bloom-html |
| version | 0.1.3 |
| created_at | 2024-07-15 20:08:17.74832+00 |
| updated_at | 2024-07-15 20:40:17.202884+00 |
| description | Provides the HtmlNode type for bloom-client and bloom-server |
| homepage | |
| repository | https://github.com/mismosmi/bloom/tree/main/bloom-html |
| max_upload_size | |
| id | 1304271 |
| size | 14,569 |
bloom-html provides the central node-type for Browser-Environments:
HtmlNode.
It is part of the bloom UI-Framework and builds on the bloom-core crate.
HtmlNode is roughly equivalent to a node in the Browser-DOM.
Currently implemented are
Element which represents a tag such as <div> or <span>Text which represents some text such as the content of <div>foo</div>Comment which represents HTML-comments (<!-- my comment here -->)For server-side rendering (which is, notably, stateless so no use_state, use_effect etc. here) take a look at bloom-ssr
For client-side rendering take a look at bloom-client. It also supports hydrating from server-rendered html.
For anything more fancy please bring a little patience...