fn render_tree( ctx: &mut HostContext, root: &PathBuf, vars: &BTreeMap<String, String>, ) -> Result<()>