pub fn render_modules_to_file<P: AsRef<Path>>(
engine: &Tera,
modules: Vec<&Module>,
cache: &impl ModuleStore,
context: Option<Context>,
template_name: &str,
path: P,
) -> Result<(), Error>Expand description
Render the set of modules, with the template in the file template_name, and using engine.
If context is not specified a new blank object is created, and in either case a map is created
under the key "modules" as a map from module name to module representation.
{
"modules": {
"Identifier": {},
}
}In the case of this function the template is rendered to the file named by path.