* progress: reworked don't run this, it'll kill your web browser * feat: use_eval but with comms * revision: async recv & recv_sync * revision: use_eval * revision: standard eval interface * revision: use serde_json::Value instead of JsValue * revision: docs * revision: error message * create: desktop eval (wip) * fix: desktop eval * revision: wrap use_eval in Rc<RefCell<_>> * fix: fmt, clippy * fix: desktop tests * revision: change to channel system - fixes clippy errors - fixes playwright tests * fix: tests * fix: eval example * fix: fmt * fix: tests, desktop stuff * fix: tests * feat: drop handler * fix: tests * fix: rustfmt * revision: web promise/callback system * fix: recv error * revision: IntoFuture, functionation * fix: ci * revision: playwright web * remove: unescessary code * remove dioxus-html from public examples * prototype-patch * fix web eval * fix: rustfmt * fix: CI * make use_eval more efficient * implement eval for liveview as well * fix playwright tests * fix clippy * more clippy fixes * fix clippy * fix stack overflow * fix desktop mock * fix clippy --------- Co-authored-by: Evan Almloff <evanalmloff@gmail.com>
46 lines
1.3 KiB
Rust
46 lines
1.3 KiB
Rust
#![allow(non_snake_case)]
|
|
|
|
//! # Dioxus Namespace for HTML
|
|
//!
|
|
//! This crate provides a set of compile-time correct HTML elements that can be used with the Rsx and Html macros.
|
|
//! This system allows users to easily build new tags, new types, and customize the output of the Rsx and Html macros.
|
|
//!
|
|
//! An added benefit of this approach is the ability to lend comprehensive documentation on how to use these elements inside
|
|
//! of the Rsx and Html macros. Each element comes with a substantial amount of documentation on how to best use it, hopefully
|
|
//! making the development cycle quick.
|
|
//!
|
|
//! All elements are used as zero-sized unit structs with trait impls.
|
|
//!
|
|
//! Currently, we don't validate for structures, but do validate attributes.
|
|
|
|
mod elements;
|
|
#[cfg(feature = "hot-reload-context")]
|
|
pub use elements::HtmlCtx;
|
|
pub mod events;
|
|
pub mod geometry;
|
|
mod global_attributes;
|
|
pub mod input_data;
|
|
#[cfg(feature = "native-bind")]
|
|
pub mod native_bind;
|
|
mod render_template;
|
|
#[cfg(feature = "wasm-bind")]
|
|
mod web_sys_bind;
|
|
|
|
#[cfg(feature = "serialize")]
|
|
mod transit;
|
|
|
|
#[cfg(feature = "serialize")]
|
|
pub use transit::*;
|
|
|
|
pub use elements::*;
|
|
pub use events::*;
|
|
pub use global_attributes::*;
|
|
pub use render_template::*;
|
|
|
|
mod eval;
|
|
|
|
pub mod prelude {
|
|
pub use crate::eval::*;
|
|
pub use crate::events::*;
|
|
}
|