How to use Twitter Bootstrap 3 with play framework 2.3

前端 未结 5 562
庸人自扰
庸人自扰 2021-01-04 19:04

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 blan

5条回答
  •  温柔的废话
    2021-01-04 19:46

    In the new Play 2.4 version, you should use:

    @routes.Assets.versioned("an_asset")
    

    instead of:

    @routes.Assets.at("an_asset")
    

    But remember to keep this in the routes file:

    GET     /assets/*file               controllers.Assets.versioned(path="/public", file: Asset)
    

提交回复
热议问题