How to use Twitter Bootstrap 2 with play framework 2.x

前端 未结 8 1433
感动是毒
感动是毒 2020-12-04 08:11

I know that current Play! distribution has a helper for Bootstrap 1.4. What should I do if I want to use the current version of Bootstrap?

8条回答
  •  时光说笑
    2020-12-04 08:48

    I use bootstrap 2.0 with play 2.0 . Everithing work fine,exept the helper.twitterbootstrap.

    I think it maje class for twitterbootstrap 1.x ,not for 2.0 . Any solution?

    Edit : it's work

    1. I create package helper/twitterBootstrap2 in app/view
    2. Then i copy path_to_play/play2.0.1/framework/src/play/src/main/scala/views/helper in helper/twitterBootstrap2
    3. I modifie it like i want.
    4. And i import @import helper.FieldConstructor and @import helper.twitterBootstrap2._ and @impliciteField = @(FieldContructor(twitterBootstrap2FieldContructor.f in my view where i want to use it

提交回复
热议问题