I have been trying adding bootstrap's js and css files to public/javascripts and public/stylesheets application in play framework application. I donno why but I get a blank output. Is it the correct way to proceed for bootstrap v3 with play v2.3? If not what's the correct procedure to do it?
相关问题
- How to add a “active” class to a carousel first el
- PlayFramework: how to transform each element of a
- Full Clickable Accordion in Bootstrap
- How to add Bootstrap 4 without Tether?
- Laravel overriding bootstrap template
相关文章
- Make Bootstrap tab Active on the bases of URL link
- Rails: Twitter Bootstrap Buttons when visited get
- Reduce spacing between rows
- How do use bootstrap tooltips with React?
- Testing request with CSRF Token in Play framework
- Need to design 8 boxes in two rows
- How to map an abstract collection with jpa?
- Trigger a Bootstrap .collapse('toggle') vi
DO NOT divide downloaded library manually, what for? It contains relative paths.
Just unzip it i.e. into
public/bootstrap
folder and include JS/CSS from there as common public asset:of course I assume that you have default route created by Play:
TIP: these folders you mentioned are just sample, it doesn't oblique you to anything... you can move/rename/delete them, whatever
In the new Play 2.4 version, you should use:
instead of:
But remember to keep this in the routes file:
in Play 2.5.x
In the
build.sbt
file add the following:My solution was as follows:
In build.sbt:
In
conf/routes
, ensure you have the following line: (This should be included by default unless you deleted it)In your
file.scala.html
file, you include bootstrap like so: