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

前端 未结 8 1405
感动是毒
感动是毒 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:49

    I'll throw in, to use Glyphicons with Bootstrap 2.2.2 and Play 2.0.4 I couldn't quite use the routes that adis posted above. I moved the two glyphicons files into the 'images' folder (the Play default, not 'img' which is the Bootstrap default) and added to my routes:

    # Map Bootstrap images
    GET     /assets/img/glyphicons-halflings.png            controllers.Assets.at(path="/public", file="/images/glyphicons-halflings.png")
    GET     /assets/img/glyphicons-halflings-white.png      controllers.Assets.at(path="/public", file="/images/glyphicons-halflings-white.png")
    

    and this let me access the glyphicons like a normal bootstrap install, no messing with 'less' files etc

提交回复
热议问题