Skip to content

Instantly share code, notes, and snippets.

@mguillermin
Created March 3, 2014 12:41
Show Gist options
  • Save mguillermin/9324154 to your computer and use it in GitHub Desktop.
Save mguillermin/9324154 to your computer and use it in GitHub Desktop.
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