February 2018
Intermediate to advanced
552 pages
13h 46m
English
Let's explore some of the Twirl Template Engine constructs now:
For instance, we can import our UserData into our View template, as shown here:
@import model.UserData
Here, UserData is a case class or object that is available under the model directory directly under our ${PROJECT_HOME} app.
@* End of HTML Form block *@
Here, @* denotes the beginning of the comment and *@ denotes the end of the comment.
@if(result) ...
Read now
Unlock full access