Skip to main content

render

Function render 

Source
pub fn render(template_name: &str, ctx: &Context) -> Result<Response, String>
Available on crate feature tera only.
Expand description

Render template_name with ctx using the global engine and return a 200 OK HTML response.

With RWS_ENV=dev the templates are re-read from disk first (18.35.0), so an edit shows on the next page load.