Play! 2.0.1 - css in assets

Under the directory, appI can reference the javascript file, ajavascriptfile.jsinside the package, from the html document:

<script src="/assets/css/test/ajavascriptfile.js"></script>

enter image description here

However, I cannot reference the css file,, acssfile.cssinside the html document:

<script src="/assets/css/test/acssfile.css"></script>

The error is not thrown, except in the console, which indicates that the file was not found. Is there a route that I am missing? For an organization, it just seems advisable to use packages to manage them, unlike shared folders (where I host third-party files).

+3
source share
2 answers

H.Buzz , , Play 2.0, public/, app/assets/. app/assets/, Play, , .js, .coffee .less.

JavaScript Google Closure. CSS , .

public/, .

+2

{projectfolder}/ /css/test/acssfile.css



link rel="stylesheet" media="screen" href="@routes.Assets.at("css/test/acssfile.css")">

:)

0

All Articles