Skip to main content

composable_html/
lib.rs

1//! This crate contains a trait that can be used to compose HTML pages.
2//!
3//! This crate is designed to be used with [HTMX](https://htmx.org/), but it aims to be generic enough to be used
4//! with other frameworks or even alone. This crate is not affiliated to HTMX.
5//!
6//! In this crate is defined the [crate::render::Render] trait, which can be used to define how an
7//! element is rendered as a string.
8//!
9//! The module [elements] contains general-purpose, opinionated elements that can be used as-is or
10//! as examples for writing your custom elements. It can be enabled via feature flags.
11#![deny(missing_docs)]
12
13/// The main module of the crate.
14pub mod render;
15
16/// This module contains general-purpose, community-developed elements.
17#[cfg(any(feature = "elements", doc))]
18pub mod elements;