This library gives you a way to drop Twitter Bootstrap into your project as a Maven dependency, which means you don't have to include these third party files in your own source control.
Add this to the element of your pom.xml. The artifact is deployed to the Maven Central Repository.
<dependency>
<groupId>com.efsavage.twitter.bootstrap</groupId>
<artifactId>bootstrap-maven</artifactId>
<version>2.3.1</version>
</dependency>
The files will "mount" themselves at the following URLs:
- /ext/bootstrap/css/bootstrap.css
- /ext/bootstrap/css/bootstrap-responsive.css
- /ext/bootstrap/js/bootstrap.js
- /ext/bootstrap/img/glyphicons-halflings.png (referenced from the css files)
- /ext/bootstrap/img/glyphicons-halflings-white.png (referenced from the css files)
This requires a Servlet 3.0 container, such as Jetty 8.
The minified versions of .css and .js files are used by default, append ?min=false to see the full versions.
This library contains a tld and tag files which will automatically be available to your web application when the jar is loaded. To include the tag library on your JSP page, include the following directive at the top:
<%@ taglib uri="http://efsavage.com/twitter-bootstrap" prefix="bs"
You can then use the tags as specified in the taglibs.md file. For example:
<bs:button text="Go" />
will render to:
<button class="btn" type="button">Go</button>
The files served have not been modified in any way from their original distribution.
Note: See the Bootstrap Changelog for information about changes to the Bootstrap files themselves.
##2.3.1
- Updated to Bootstrap version 2.3.1
- Additional taglibs
##2.2.2
- Updated to Bootstrap version 2.2.2
- Added taglibs
##2.1.1
- Updated to Bootstrap version 2.1.1
##2.0.4
- Updated to Bootstrap version 2.0.4
- Fixed the image servlets
- Moved files under /ext/bootstrap/ parent directory.
##2.0.3
- Updated to Bootstrap version 2.0.3
##2.0.2
- Updated to Bootstrap version 2.0.2
##2.0.1
- Updated to Bootstrap version 2.0.1
##2.0.0
- Updated to Bootstrap version 2.0.0