code: func (r *Store) TemplateTree(ctx context.Context) (tree.Tree, error) {
  	root := simple.New("gopass")
  
  	for _, t := range r.store.ListTemplates(ctx, "") {
  		out.Debug(ctx, "[<root>] Adding template %s", t)
  		if err := root.AddFile(t, "gopass/template"); err != nil {
  			out.Error(ctx, "Failed to add file to tree: %s", err)
  		}
  	}
  
  	mps := r.MountPoints()
  	sort.Sort(store.ByPathLen(mps))
  	for _, alias := range mps {
  		substore := r.mounts[alias]
  		if substore == nil {
  			continue
  		}
  		if err := root.AddMount(alias, substore.Path()); err != nil {
  			return nil, errors.Errorf("failed to add mount: %s", err)
  		}
  		for _, t := range substore.ListTemplates(ctx, alias) {
  			out.Debug(ctx, "[%s] Adding template %s", alias, t)
  			if err := root.AddFile(t, "gopass/template"); err != nil {
  				out.Error(ctx, "Failed to add file to tree: %s", err)
  			}
  		}
  	}
  
  	return root, nil
  }
docs: // TemplateTree returns a tree of all templates