Form field for this enum
Form field for this enum
Binder for play.api.routing.sird router
Binder for play.api.routing.sird router
Example:
import play.api.routing.sird._ import play.api.routing._ import play.api.mvc._ Router.from { case GET(p"/hello/${Greeting.fromPath(greeting)}") => Action { Results.Ok(s"$greeting") } }
Implicit path binder for Play's default router
Implicit path binder for Play's default router
An Enum that has a lot of the Play-related implicits built-in so you can avoid boilerplate.
Note, the binders created here transform to lower case.
Things included are:
Form("hello" -> MyEnum.formField)