Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
name := "testRequireJs"
version := "1.0-SNAPSHOT"
libraryDependencies ++= Seq(
jdbc,
anorm,
cache
)
play.Project.playScalaSettings
requireJs += "main.js"
requireJsShim += "main.js"
@(title: String)(content: Html)
<!DOCTYPE html>
<html>
<head>
<title>@title</title>
<link rel="stylesheet" media="screen" href="@routes.Assets.at("stylesheets/main.css")">
<link rel="shortcut icon" type="image/png" href="@routes.Assets.at("images/favicon.png")">
</head>
<body>
@content
@helper.requireJs(core = routes.Assets.at("javascripts/require.js").url, module = routes.Assets.at("javascripts/main").url)
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment