By Alvin Alexander. Last updated: September 30, 2021
When you want to create Play Framework template comments, use the @* ... *@
syntax.
Single line Play Framework comment
Here's a one-line Play Framework comment:
@* COMMENT *@
Multi-line Play comment
Here's a multi-line Play comment:
@* * Four score * and seven year ago * our fathers ... *@
(You can indent that however you want.)
More Play Framework comments info
You can use comments as the first line of Play Framework templates (before the function declaration):
@************************************* * The 'Hello, world' page * * * * @param msg The message to display * *************************************@ @(msg: String) <h1>Hello, world</h1>
I found this information on the Play Framework Templates Syntax page.