// Render renders the view of the command. If the HTML field of the receiver
// is not nil, it will render the whole page, otherwise it will just render
// the gobra section.
Render renders the view of the command. If the HTML field of the receiver
is not nil, it will render the whole page, otherwise it will just render
the gobra section.
// Render renders the view of the command . If the HTML field of the receiver // is not nil it will render the whole page otherwise it will just render // the gobra section .
func (s *Server) Render(w io.Writer) error {
	if s.HTML != nil {
		b := new(bytes.Buffer)
		if err := s.tCmd.Execute(b, s); err != nil {
			return err
		}
		return s.HTML.Execute(w, template.HTML(b.Bytes()))
	}
	return s.tCmd.Execute(w, s)
}
func ( s * Server ) Render ( w io . Writer ) error { if s . HTML != nil { b := new ( bytes . Buffer ) if err := s . tCmd . Execute ( b , s ) ; err != nil { return err } return s . HTML . Execute ( w , template . HTML ( b . Bytes ( ) ) ) } return s . tCmd . Execute ( w , s ) }
Render renders the view of the command.
Render renders the view of the command .