I have (finally) set up a sub-project in the Play Framework but cannot access the stylesheet (for the sub-project). I have the following:
Project Structure
main-project
_build.sbt
_app
_controllers
_models
_views
_conf
_application.conf
_routes
_modules
_admin
_build.sbt
_app
_controllers
_admin
_Assets
_HomeController
_models
_views
_admin
_aMain.scala.html
_assets
_less
_admin.less
_conf
_admin.routes
_project
_build.properties
_plugins.sbt
admin.routes
GET / controllers.admin.HomeController.index
GET /assets/*file controllers.admin.Assets.at(path="/public/lib/admin", file)
aMain.scala.html
@(title: String)
<!DOCTYPE html>
<html lang="en">
<head>
<title>@title</title>
<link rel="stylesheet" media="screen" href="@admin.routes.Assets.at("less/admin.less")">
<link rel="shortcut icon" type="image/png" href="@admin.routes.Assets.at("images/favicon.png")">
<script src="@admin.routes.Assets.at("javascripts/hello.js")" type="text/javascript"></script>
</head>
<body>
@* And here's where we render the `Html` object containing
* the page content. *@
<div class="blue-italic">@title</div>
</body>
</html>
So the page loads successfully but not the stylesheet. I even made the paths and the filenames unique to avoid any potential conflicts. Can anyone see what is going wrong here? Thanks