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
38
39
40
41
42
43
44
45
46
47
//!
//!  **Sauron** is an web framework for creating fast and interactive client side web application,
//!  as well as server-side rendering for back-end web applications.
//!
//!
#![doc(
    html_logo_url = "https://raw.githubusercontent.com/ivanceras/sauron/master/assets/sauron.png"
)]
#![deny(clippy::all)]
#![deny(
    warnings,
    missing_docs,
    missing_copy_implementations,
    trivial_casts,
    trivial_numeric_casts,
    unstable_features,
    unused_import_braces
)]

#[doc(inline)]
pub use prelude::*;

// NOTE: This test the code written in the README file
#[cfg(doctest)]
doc_comment::doctest!("../README.md");
//#[cfg(doctest)]
//doc_comment::doctest!("../docs/getting-started.md");
//#[cfg(doctest)]
//doc_comment::doctest!("../docs/intermediate-example.md");

/// prelude
pub mod prelude {
    pub use sauron_core::prelude::*;
    pub use sauron_core::*;

    pub use sauron_macro::extract_skip_diff;
    pub use sauron_macro::view;

    #[cfg(feature = "with-node-macro")]
    pub use sauron_macro::node;

    #[cfg(feature = "with-jss")]
    pub use sauron_macro::{jss, jss_with_media, style};

    #[cfg(feature = "html-parser")]
    pub use sauron_html_parser::{parse_html, raw_html};
}