Skip to content

Latest commit

 

History

History
62 lines (49 loc) · 2.15 KB

File metadata and controls

62 lines (49 loc) · 2.15 KB

FoBo TwBs Bootstrap3 Toolkit Module

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.

Components and available versions

  • 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

Integration into your project

Dependency settings

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.

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

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

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

import net.liftmodules.{fobobs => fobo}
  :
fobo.Toolkit.init = fobo.Toolkit.BootstrapXXX 

Lift FoBo Template hooks

<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

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