#bloom #tags #spans #element #div #html-node #bloom-client

bloom-html

Provides the HtmlNode type for bloom-client and bloom-server

4 releases

0.1.3 Jul 15, 2024
0.1.2 Jul 15, 2024
0.1.1 Jul 15, 2024
0.1.0 Jul 15, 2024

#508 in Text processing


Used in 2 crates

MIT license

84KB
2K SLoC

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

Dependencies

~11MB
~208K SLoC