1

I have seen the ?= operator used for setting default values when defining routes in Play. But I cannot find any references to it the documentation. Where is this operator documented? Is this a Scala thing or a Play Framework thing?

Example Usage:

GET  /users  controllers.Application.users(max:java.lang.Integer ?= 50, page:java.lang.Integer ?= 0)

(taken from: How to handle optional query parameters in Play framework).

ordonezalex
  • 2,298
  • 1
  • 19
  • 32
Mike Rylander
  • 16,938
  • 22
  • 81
  • 134

1 Answers1

1

This is specific to the Play Framework. It is (briefly) documented in the routing section.

conf/routes is the configuration file used by the router.

The routes file is not Scala; it only resembles it.

ordonezalex
  • 2,298
  • 1
  • 19
  • 32