This FoBo toolkit module provides Twitter Bootstrap v2.x API and Resource components to the FoBo / FoBo Module, but can also be used as-is, see below for setup information.
- Bootstrap [v2.3.2] - Bootstrap
Example setup:
SBT:
"net.liftmodules" %% "fobo-twitter-bootstrap_3.3" % "2.1.0"
Maven:
<dependency>
<groupId>net.liftmodules</groupId>
<artifactId>fobo-twitter-bootstrap_3.3_2.12.7</artifactId>
<version>2.1.0</version>
</dependency>
The example will include a module built for lift 3.1.x. If you are using maven observe that the artifact id also needs the Scala version.
import net.liftmodules.fobo
:
fobo.Toolkit.init = fobo.Toolkit.Bootstrap232
import net.liftmodules.fobotb
:
fobotb.Toolkit.init = fobotb.Toolkit.Bootstrap323
<link rel="stylesheet" type='text/css' href='/classpath/fobo/bootstrap.css'>
<link rel="stylesheet" type='text/css' href='/classpath/fobo/bootstrap-responsive.css'>
:
<link rel="stylesheet" type='text/css' href='[path/to/you/app/specific/css/file/in/the/webapp/dir]'>
:
:
<script type="text/javascript" src="/classpath/fobo/bootstrap.js"></script>
For more information on how to use Twitter Bootstrap see Twitter Bootstrap For more information on how to use Twitter Bootstrap in the FoBo module see the FoBo - Lift Front-End Toolkit Module.
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