@(products: Seq[Product], user: User, article: Article) @* #escape-at *@ My email is bob@@example.com @* #escape-at *@ @* #for-loop *@ @* #for-loop *@ @defining(List("a", "b")) { items => @* #conditional *@ @if(items.isEmpty) {

Nothing to display

} else {

@items.size items!

} @* #conditional *@ } @* #reusable *@ @display(product: Product) = { @product.name ($@product.price) } @* #reusable *@ @* #pure-reusable *@ @title(text: String) = @{ text.split(' ').map(_.capitalize).mkString(" ") }

@title("hello world")

@* #pure-reusable *@ @* #implicits *@ @implicitFieldConstructor = @{ MyFieldConstructor() } @* #implicits *@ @ImplicitTester.test @* #defining *@ @defining(user.firstName + " " + user.lastName) { fullName =>
Hello @fullName
} @* #defining *@ @* #comment *@ @********************* * This is a comment * *********************@ @* #comment *@ @* #raw-html *@

@Html(article.content)

@* #raw-html *@