twitterBootstrap is not recognized in play framework 2.4?

▼魔方 西西 提交于 2019-12-23 02:26:14

问题


I'm using Play framework 2.4. I tried to use bootstrap as guided at https://www.playframework.com/documentation/2.0/ScalaFormHelpers.

In my template, I used the import statement:

@import helper.twitterBootstrap._

But I got a compilation error:

object twitterBootstrap is not a member of package views.html.helper

Am I missing something?


回答1:


Maybe it has beed removed as mentioned here: https://www.playframework.com/documentation/2.3.3/Migration23

The in-built Twitter Bootstrap field constructor has been deprecated, and will be removed in a future version of Play.

There are a few reasons for this, one is that we have found that Bootstrap changes too drastically between versions and too frequently, such that any in-built support provided by Play quickly becomes stale and incompatible with the current Bootstrap version.

For those who use play 2.4



来源:https://stackoverflow.com/questions/31742644/twitterbootstrap-is-not-recognized-in-play-framework-2-4

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!