bloom-html

Crates.iobloom-html
lib.rsbloom-html
version0.1.3
sourcesrc
created_at2024-07-15 20:08:17.74832
updated_at2024-07-15 20:40:17.202884
descriptionProvides the HtmlNode type for bloom-client and bloom-server
homepage
repositoryhttps://github.com/mismosmi/bloom/tree/main/bloom-html
max_upload_size
id1304271
size14,569
Michel Smola (mismosmi)

documentation

README

bloom-html

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.

The HtmlNode type

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 -->)

So what do I do with this?

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...

Commit count: 0

cargo fmt