Skip to Content
Scala Reactive Programming
book

Scala Reactive Programming

by Rambabu Posa
February 2018
Intermediate to advanced
552 pages
13h 46m
English
Packt Publishing
Content preview from Scala Reactive Programming

Twirl View Templates

Play Framework supports different View Templates using the Twirl Template engine. We can even create our own View Template types.

Some of the important Play View Template types are as follows:

  • Scala Templatemain.scala.html

Here we use main as the template name and scala to identify this as a Scala-based HTML template type.

  • Text Templatemain.scala.txt

Here we use main as the template name and txt to identify this as a Scala-based Text template type.

  • XML Templatemain.scala.xml

Here we use main as the template name and scala to identify this as a Scala-based XML template type.

For instance, we have a project with play-scala-app as the base directory. Let's assume PROJECT_HOME = play-scala-app.

For each template, ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Scala Programming Projects

Scala Programming Projects

Mikael Valot, Nicolas Jorand
Learning Scala

Learning Scala

Jason Swartz
Functional Programming in Scala

Functional Programming in Scala

Runar Bjarnason, Paul Chiusano

Publisher Resources

ISBN: 9781787288645Supplemental Content