Hi I try to integrate play framework (current) 2.3.7 with Bootstrap 3:
sbt file:
libraryDependencies ++= Seq(
"org.webjars" %% "webjars-play" % "2.3.0-2",
"org.webjars" % "bootstrap" % "3.1.1-2"
)
html
<body>
<!-- Latest compiled and minified CSS -->
<link rel='stylesheet' href='@routes.Assets.at(WebJarAssets.locate("css/bootstrap.min.css"))'>
<ul class="nav nav-tabs">
<li role="presentation" class="active"><a href="#">Home</a></li>
<li role="presentation"><a href="#">Profile</a></li>
<li role="presentation"><a href="#">Messages</a></li>
</ul>
Only throws this error: [MultipleMatchesException: Multiple matches found for css/bootstrap.min.css. Please provide a more specific path, for example by including a version number.]
a different try (which should have worked on earlier 2.3 versions): http://www.webjars.org/documentation
<link rel='stylesheet' href='@routes.WebJarAssets.at(WebJarAssets.locate("css/bootstrap.min.css"))'>
<script type='text/javascript' src='@routes.WebJarAssets.at(WebJarAssets.locate("jquery.min.js"))'></script>
But Play only tells me that the web jar assets controller is not available
value WebJarAssets is not a member of object controllers.routes