Features
Learn about different features of the Play framework.
We'll cover the following...
Controllers, views and forms
Much like in Grails, controllers define the actions that can take place and the views, which are used.
Scala has functions that correspond to HTTP codes such as OK:
- Success: Return ok(…)
- Error: Return badRequest(…)
Views are based on templates. The default template language is Scala-based. For example, here’s an HTML page with a title that shows the environment’s user and the date:
@(title: String)
@import
...