O'Reilly logo

Learning Play! Framework 2 by Andy Petrella

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 3. Templating Easily with Scala

Play! Framework 2 is a web framework, and so is meant to create web applications. A web application is an application that presents an interactive interface through a web browser. But the browser might not be the only client of such an application, because data created while using it could be used by other applications (that's web integration). And so, very often, the server side of a web application is also exposing data through web services. Which leads us to the need, as developers, to not only generate HTML pages, but also TXT pages, XML pages, and so on.

Play! 2 provides a powerful way to create all such external representations of server-side data: a type-safe templating system based on Scala.

In this ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required