mod core; #[cfg(engine)]
mod default_headers;
mod capsule;
#[cfg(engine)]
mod fn_types;
#[cfg(engine)]
mod states;
mod widget_component;
pub use self::core::*;
#[cfg(engine)]
pub use fn_types::*; #[cfg(engine)]
pub(crate) use default_headers::default_headers;
pub use capsule::{Capsule, CapsuleInner};
#[cfg(engine)]
pub(crate) use states::States;
use crate::{errors::ClientError, path::PathMaybeWithLocale, state::TemplateState};
use sycamore::{
prelude::{Scope, ScopeDisposer},
view::View,
};
pub(crate) type TemplateFn<G> = Box<
dyn for<'a> Fn(
Scope<'a>,
PreloadInfo,
TemplateState,
PathMaybeWithLocale,
) -> Result<(View<G>, ScopeDisposer<'a>), ClientError>
+ Send
+ Sync,
>;