fn create_env( workspace: WorkspaceIndex, dir: &Path, ) -> Result<Environment<'static>, TemplateError>