Skip to main content

write_hx_fragment_response_with_csrf

Function write_hx_fragment_response_with_csrf 

Source
pub fn write_hx_fragment_response_with_csrf(
    app: &AppRuntime,
    request: Option<&HttpRequest>,
    fragment_html: &str,
) -> String
Expand description

Builds an HTMX fragment response with a scoped base path and CSRF cookie.

§Parameters

§Returns

Returns the computed value produced by crate::runtime::dynamic::write_hx_fragment_response_with_csrf.

§Examples

ⓘ
let _result = pharos_native::runtime::dynamic::write_hx_fragment_response_with_csrf(todo!(), todo!(), todo!());