code: func (g *Generator) Render(templ string) ([]byte, error) {
  	if g.loader == nil {
  		g.loader = &symbols.Loader{Source: g.Starlark}
  		g.links = map[string]*symbol{}
  	}
  
  	t, err := template.New("main").Funcs(g.funcMap()).Parse(templ)
  	if err != nil {
  		return nil, err
  	}
  
  	buf := bytes.Buffer{}
  	if err := t.Execute(&buf, nil); err != nil {
  		return nil, err
  	}
  	return buf.Bytes(), nil
  }
docs: // Render renders the given text template in an environment with access to
  // parsed structured Starlark comments.