Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

body: => Html in the Play framework?

I just started to use the Play framework and Scala. What does body: => Html mean in the Play framework? Thanks.

like image 302
trivektor Avatar asked Dec 18 '11 07:12

trivektor


People also ask

What is form in play framework?

Play's form handling approach is based around the concept of binding data. When data comes in from a POST request, Play will look for formatted values and bind them to a Form object. From there, Play can use the bound form to value a case class with data, call custom validations, and so on.

What is Scala HTML?

A Play Scala template is a simple text file that contains small blocks of Scala code. Templates can generate any text-based format, such as HTML, XML or CSV. The template system has been designed to feel comfortable to those used to working with HTML, allowing front-end developers to easily work with the templates.

What is MVC in play framework?

A play application follows the MVC architectural pattern applied to the Web architecture. This pattern splits the application into separate layers: the Presentation layer and the Model layer. The Presentation layer is further split into a View and a Controller layer.

Is Play framework backend?

Play comes with two configurable server backends, which handle the low level work of processing HTTP requests and responses to and from TCP/IP packets. Starting in 2.6. x, the default server backend is the Akka HTTP server backend, based on the Akka-HTTP server. Prior to 2.6.


1 Answers

It's call-by-name parameter

http://ofps.oreilly.com/titles/9780596155957/FunctionalProgramming.html#_call_by_name_call_by_value

like image 75
elbowich Avatar answered Oct 19 '22 03:10

elbowich