Skip to content

Instantly share code, notes, and snippets.

@mguillermin
Created March 14, 2012 09:35
Show Gist options
  • Save mguillermin/2035375 to your computer and use it in GitHub Desktop.
Save mguillermin/2035375 to your computer and use it in GitHub Desktop.
Play 2.0 Scala Template Sample
@(user: User, links : List[link])
@main("User links") {
<p>Welcome @user.name !</p>
<ul>
@for(link <- links) {
<li><a href="@link.url">@link.title</a></li>
}
</ul>
}
@(title: String)(content: Html)
<!DOCTYPE html>
<html>
<head>
<title>@title</title>
</head>
<body>
@content
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment