code: func Execute(ctx context.Context, tpl, name string, content []byte, s kvstore) ([]byte, error) {
  	funcs := funcMap(ctx, s)
  	pl := payload{
  		Dir:     filepath.Dir(name),
  		Path:    name,
  		Name:    filepath.Base(name),
  		Content: string(content),
  	}
  
  	tmpl, err := template.New(tpl).Funcs(funcs).Parse(tpl)
  	if err != nil {
  		return []byte{}, err
  	}
  
  	buff := &bytes.Buffer{}
  	if err := tmpl.Execute(buff, pl); err != nil {
  		return []byte{}, err
  	}
  
  	return buff.Bytes(), nil
  }
docs: // Execute executes the given template