code: func (s *Server) generateMain() error {
  	filename := filepath.Join(s.Dir, "main.nim")
  	return commons.GenerateFile(s, "./templates/nim/server_main_nim.tmpl", "server_main_nim", filename, true)
  }
docs: // main generates main file