Skip to main content

page_context

Function page_context 

Source
pub fn page_context(request: &Request) -> Context
Available on crate feature tera only.
Expand description

A Context for rendering a page in answer to request: flash (a list of {kind, text}), notice and alert (the first of each, when there is one), csrf_token and csrf_field (csrf feature; from CsrfLayer, else its _csrf cookie; empty without either) and path.