[][src]Trait operator::content::ContentEngine

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

Required methods

pub fn get_render_context(
    &self,
    request_route: Option<Route>
) -> RenderContext<'_, ServerInfo, Self>
[src]

pub fn new_template(
    &self,
    template_source: &str,
    media_type: MediaType
) -> Result<UnregisteredTemplate, TemplateParseError>
[src]

pub fn get_internal(&self, route: &Route) -> Option<&ContentRepresentations>[src]

pub fn get(&self, route: &Route) -> Option<&ContentRepresentations>[src]

pub fn handlebars_registry(&self) -> &Handlebars<'_>[src]

Loading content...

Implementors

impl<'engine, ServerInfo> ContentEngine<ServerInfo> for FilesystemBasedContentEngine<'engine, ServerInfo> where
    ServerInfo: Clone + Serialize
[src]

Loading content...