pub trait IncludeLoader: Debug {
    // Required method
    fn resolve(&self, path: &str) -> Result<String, IncludeLoaderError>;
}

Required Methods§

source

fn resolve(&self, path: &str) -> Result<String, IncludeLoaderError>

This function is used to fetch the included template using the path attribute.

You can have an example of simple resolve function with the MemoryIncludeLoader.

Implementors§