Play Framework uses the Twirl template engine for its View Components. As Twirl template is a Scala-based typesafe template, Scala developers can write them very easily.
View Templates
Benefits of Twirl Templates
The various benefits of Twirl Templates are as follows:
- Typesafe
- As it's based on the Scala language, there is no need to learn new technology
- The templates are compiled and evaluated, so if there are any errors, we can see these errors in the browser
We will discuss this more in the Play Framework View Templates Constructs section with some simple examples.