Skip to content

Latest commit

 

History

History
58 lines (48 loc) · 2.04 KB

File metadata and controls

58 lines (48 loc) · 2.04 KB

FoBo Twitter Bootstrap Toolkit Module

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.

Components and available versions

Integration into your project

Dependency settings

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.

Lift FoBo boot hooks (when used in the FoBo module)

import net.liftmodules.fobo 
  :
fobo.Toolkit.init = fobo.Toolkit.Bootstrap232 

Lift FoBo boot hooks (when used as stand alone module)

import net.liftmodules.fobotb
  :
fobotb.Toolkit.init = fobotb.Toolkit.Bootstrap323 

Lift FoBo Template hooks

<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.

Contributions

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