#[allow(unused)] use dioxus_core::prelude::*; mod adapters; mod server_fn; pub mod prelude { #[cfg(feature = "axum")] pub use crate::adapters::axum_adapter::*; pub use crate::server_fn::{DioxusServerContext, ServerFn}; pub use server_fn::{self, ServerFn as _, ServerFnError}; pub use server_macro::*; } #[cfg(feature = "ssr")] fn dioxus_ssr_html( title: &str, application_name: &str, base_path: Option<&str>, head: Option<&str>, app: Component, ) -> String { let mut vdom = VirtualDom::new(app); let _ = vdom.rebuild(); let renderered = dioxus_ssr::pre_render(&vdom); let base_path = base_path.unwrap_or("."); let head = head.unwrap_or_default(); format!( r#" {title} {head}
{renderered}
"# ) }