This FoBo toolkit module provides Bootstrap 3.x API and Resource components to the FoBo / FoBo Module, but can also be used as-is, see below for setup information.
- Bootstrap [v3.0.0, v3.0.1, v3.1.1, v3.2.0, v3.3.5, v3.3.6, v3.3.7] - Bootstrap 3.x
Example setup:
SBT:
"net.liftmodules" %% "fobo-twbs-bootstrap3_3.3" % "2.1.0"
Maven:
<dependency>
<groupId>net.liftmodules</groupId>
<artifactId>fobo-twbs-bootstrap3_3.3_2.12.7</artifactId>
<version>2.1.0</version>
</dependency>
The example will include the FoBo Bootstrap3 toolkit module built for lift 3.3. If you are using maven observe that the artifact id also needs the Scala version.
import net.liftmodules.fobo
:
fobo.Toolkit.init = fobo.Toolkit.BootstrapXXX
import net.liftmodules.{fobobs => fobo}
:
fobo.Toolkit.init = fobo.Toolkit.BootstrapXXX
<link href='/classpath/fobo/bootstrap.css' rel="stylesheet" type='text/css'>
<link href='/classpath/fobo/bootstrap-responsive.css' rel="stylesheet" type='text/css'>
:
<link href='[path/to/you/app/specific/css/file/in/the/webapp/dir]' rel="stylesheet" type='text/css'>
:
:
<script src="/classpath/fobo/bootstrap.js" type="text/javascript" ></script>
Here the resources starting with /classpath/fobo/ is the ones provided by the FoBo module. The FoBo js and css files will, without any name change, be served debug-able in development and minimized otherwise.
For more information on how to use Twitter Bootstrap see Twitter Bootstrap
Improvements, contributions and suggestions are welcome! Please see the Contribution Document. You can also leave a issue report or drop a question/suggestion on Lift's mailing list