1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
//! maomi: a rust framework for building pages with components
//! 
//! `maomi` is a framework for building (web) application user interface.
//! It has strict compile-time check and generates fast code.
//! 
//! This is the *core* module of the framework.
//! In browsers, the `maomi-dom` crate is also needed.
//! See the [`maomi_dom`](../maomi-dom) crate document for a quick start.

#![warn(missing_docs)]

pub mod backend;
pub mod component;
pub mod diff;
pub mod error;
pub mod event;
pub mod mount_point;
pub mod node;
pub mod prop;
pub mod template;
pub mod text_node;
pub mod locale_string;
pub use backend::context::PrerenderingData;
pub use backend::context::{AsyncCallback, BackendContext};

/// The types that should usually be imported.
/// 
/// Usually, `use maomi::prelude::*;` should be added in component files for convinience.
pub mod prelude {
    pub use super::component::PrerenderableComponent;
    pub use super::component::{Component, ComponentExt, ComponentRc};
    pub use super::diff::key::AsListKey;
    pub use super::event::Event;
    pub use super::prop::Prop;
    pub use async_trait::async_trait;
    pub use maomi_macro::*;
}