pub trait IncludeLoader: Debug {
// Required method
fn resolve(&self, path: &str) -> Result<String, IncludeLoaderError>;
}Required Methods§
sourcefn resolve(&self, path: &str) -> Result<String, IncludeLoaderError>
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.