Chapter 6. Building a user interface with view templates

This chapter covers

  • Introducing type-safe template engines
  • Creating templates
  • The template syntax
  • Structuring larger templates into reusable pieces
  • Internationalization support

Chances are, you’re building a web application that’s going to be used by humans. Even though the web is increasingly a place where applications talk to each other via APIs, and many web applications only exist as back ends for applications on mobile devices, it’s probably safe to say that the majority of web applications interact with humans via a web browser.

Browsers interpret HTML, and with it you can create the shiny interfaces that users expect, using your application to present the HTML front end to the ...

Get Play for Scala now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.