Trait trillium_askama::AskamaConnExt

source ·
pub trait AskamaConnExt {
    // Required method
    fn render(self, template: impl Template) -> Self;
}
Expand description

extends trillium conns with the ability to render askama templates

Required Methods§

source

fn render(self, template: impl Template) -> Self

renders an askama template, halting the conn and setting a 200 status code. also sets the mime type based on the template extension

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl AskamaConnExt for Conn

source§

fn render(self, template: impl Template) -> Self

Implementors§