pub fn new(path: impl Into<String> + std::fmt::Display) -> Self {
        Self {
            path: path.to_string(),
            template: Box::new(|_: Option<String>| sycamore::view! {}),
            // Unlike `template`, this may not be set at all (especially in very simple apps)
            head: Box::new(|_: Option<String>| sycamore::view! {}),
            // We create sensible header defaults here
            set_headers: Box::new(|_: Option<String>| default_headers()),
            get_build_paths: None,
            incremental_generation: false,
            get_build_state: None,
            get_request_state: None,
            should_revalidate: None,
            revalidate_after: None,
            amalgamate_states: None,
        }
    }
/// Creates a new template definition.
Creates a new template definition.
Creates a new template definition .
pub fn new(path: impl Into<String> + std::fmt::Display) -> Self {
        Self {
            path: path.to_string(),
            template: Box::new(|_: Option<String>| sycamore::view! {}),
            // Unlike `template`, this may not be set at all (especially in very simple apps)
            head: Box::new(|_: Option<String>| sycamore::view! {}),
            // We create sensible header defaults here
            set_headers: Box::new(|_: Option<String>| default_headers()),
            get_build_paths: None,
            incremental_generation: false,
            get_build_state: None,
            get_request_state: None,
            should_revalidate: None,
            revalidate_after: None,
            amalgamate_states: None,
        }
    }
pub fn new ( path : impl Into < String > + std :: fmt :: Display ) -> Self { Self { path : path . to_string ( ) , template : Box :: new ( | _ : Option < String > | sycamore :: view ! { } ) , // Unlike `template`, this may not be set at all (especially in very simple apps) head : Box :: new ( | _ : Option < String > | sycamore :: view ! { } ) , // We create sensible header defaults here set_headers : Box :: new ( | _ : Option < String > | default_headers ( ) ) , get_build_paths : None , incremental_generation : false , get_build_state : None , get_request_state : None , should_revalidate : None , revalidate_after : None , amalgamate_states : None , } }
Creates a new template definition.
Creates a new template definition .
path
impl Into<String> + std::fmt::Display
path
impl Into<String> + std::fmt::Display