Expand description
This module defines the HtmlBuilder
structure and related functions
for generating HTML components with embedded CSS styles.
The HtmlBuilder
allows users to build a webpage by specifying various
components such as containers, text, and icons, and applying custom CSS
styles. It provides methods for importing fonts, disabling default browser
CSS, and rendering the components into HTML strings.
The components are modular, and the builder pattern is used to allow for easy chaining of method calls to configure and generate the final output.
Structs§
- A builder for generating HTML with embedded CSS.
Functions§
- Renders a
Container
component into an HTML string with the specified styles such as background color, size, border, padding, alignment, and flexbox layout. - Creates a new
HtmlBuilder
with default values. - Renders an
Icon
component into an SVG string with the specified attributes such as foreground and background colors, width, height, viewBox, and paths. - Renders a
Text
component into an HTML string with applied styles.