code: func (s *Store) LookupTemplate(ctx context.Context, name string) (string, []byte, bool) {
  	oName := name
  	// go upwards in the directory tree until we find a template
  	// by chopping off one path element by one.
  	for {
  		l1 := len(name)
  		name = filepath.Dir(name)
  		if len(name) == l1 {
  			break
  		}
  		tpl := filepath.Join(name, TemplateFile)
  		if s.storage.Exists(ctx, tpl) {
  			if content, err := s.storage.Get(ctx, tpl); err == nil {
  				out.Debug(ctx, "Found template '%s' for '%s'", tpl, oName)
  				return tpl, content, true
  			}
  		}
  	}
  	return "", []byte{}, false
  }
docs: // LookupTemplate will lookup and return a template