Play Framework template comments (syntax)

When you want to create Play Framework template comments, use the @* ... *@ syntax. Here's a one-line comment:


Here's a multiline comment:

 * Four score
 * and seven year ago
 * our fathers ...

(You can format that however you want.)

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.

Add new comment

The content of this field is kept private and will not be shown publicly.

Anonymous format

  • Allowed HTML tags: <em> <strong> <cite> <code> <ul type> <ol start type> <li> <pre>
  • Lines and paragraphs break automatically.
By submitting this form, you accept the Mollom privacy policy.