code: func execTemplate(c *Config, mdata metadata.Metadata, meta map[string]string, files []FileInfo, ctx httpserver.Context) ([]byte, error) {
  	mdData := Data{
  		Context: ctx,
  		Doc:     mdata.Variables,
  		Styles:  c.Styles,
  		Scripts: c.Scripts,
  		Meta:    meta,
  		Files:   files,
  	}
  
  	b := new(bytes.Buffer)
  	if err := c.Template.ExecuteTemplate(b, mdata.Template, mdData); err != nil {
  		return nil, err
  	}
  
  	return b.Bytes(), nil
  }
docs: // execTemplate executes a template given a requestPath, template, and metadata