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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
#![warn(clippy::clone_on_ref_ptr)]
#![warn(clippy::rc_buffer)]
#![warn(clippy::semicolon_if_nothing_returned)]
#![warn(rust_2018_idioms)]
#![deny(clippy::trait_duplication_in_bounds)]
#![deny(clippy::type_repetition_in_bounds)]
pub use sycamore_macro::{component, template};
pub mod component;
pub mod easing;
pub mod flow;
pub mod generic_node;
pub mod macros;
pub mod noderef;
pub mod rx;
pub mod template;
pub mod utils;
extern crate self as sycamore;
#[cfg(feature = "dom")]
pub use crate::generic_node::{hydrate, hydrate_to, render, render_to, DomNode};
#[cfg(feature = "ssr")]
pub use crate::generic_node::{render_to_string, SsrNode};
pub mod prelude {
pub use sycamore_macro::{component, template};
pub use crate::cloned;
pub use crate::flow::{Indexed, IndexedProps, Keyed, KeyedProps};
#[cfg(feature = "dom")]
pub use crate::generic_node::DomNode;
pub use crate::generic_node::GenericNode;
#[cfg(feature = "ssr")]
pub use crate::generic_node::SsrNode;
pub use crate::noderef::NodeRef;
pub use crate::rx::{
create_effect, create_effect_initial, create_memo, create_root, create_selector,
create_selector_with, on_cleanup, untrack, Signal, StateHandle,
};
pub use crate::template::{IntoTemplate, Template};
}
#[doc(hidden)]
pub mod rt {
pub use js_sys::Reflect;
pub use wasm_bindgen::{intern, JsCast, JsValue};
pub use web_sys::Event;
}