Add <script> to the <head> from scala template tags in Play Framework 2
问题 I would like to add javascript to the <head> of my webpage from within tags. This is the moreScripts equivalent I'm using on my pages: main.scala.html @(title: String, scripts: Html = Html(""))(content: Html) <!DOCTYPE html> <html lang="nl"> <head> <title>@title</title> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script> @scripts </head> <body> @content </body> </html> page.scala.html