pub trait ContentEngine<ServerInfo> where
Self: Sized,
ServerInfo: Clone + Serialize, {
fn render_context(
&self,
request_route: Option<Route>,
query_parameters: HashMap<String, String>,
request_headers: HashMap<String, String>
) -> RenderContext<'_, ServerInfo, Self>;
fn new_template(
&self,
template_source: &str,
media_type: MediaType
) -> Result<UnregisteredTemplate, TemplateError>;
fn get(&self, route: &Route) -> Option<&ContentRepresentations>;
fn handlebars_registry(&self) -> &Handlebars<'_>;
}