rstml_component/
lib.rs

1// only enables the `doc_cfg` feature when
2// the `docsrs` configuration attribute is defined
3#![cfg_attr(docsrs, feature(doc_cfg))]
4
5mod builtins;
6mod component;
7mod fmt;
8
9#[cfg(feature = "sanitize")]
10mod sanitize;
11
12pub use builtins::For;
13pub use component::HtmlComponent;
14pub use fmt::{
15	HtmlAttributeFormatter, HtmlAttributeValue, HtmlAttributes, HtmlAttributesFormatter, HtmlContent,
16	HtmlFormatter, RawText,
17};
18pub use rstml_component_macro::{component, html, write_html, HtmlComponent};
19
20#[cfg(feature = "sanitize")]
21#[cfg_attr(docsrs, doc(cfg(feature = "sanitize")))]
22pub use sanitize::{SanitizeConfig, Sanitized};