No commit activity in last 3 years
No release in over 3 years
This webgen extension bundle provides the Sass port of the Twitter Bootstrap framework. It allows the easy inclusion of parts or all of the framework in a webgen website.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

>= 0
 Project Readme

Sass Twitter Bootstrap framework for webgen

This is a webgen extension bundle that provides the Sass port of the Twitter Bootstrap framework. This allows the easy inclusion of parts or all of the Twitter Bootstrap framework in webgen websites.

It is based on the great LESS-to-Sass translation sass-twitter-bootstrap.

Usage

Since this is a port of the Twitter Bootstrap CSS framework to Sass, you can only use it if you use Sass. The needed Sass stylesheets are provided under the /bootstrap/ path. Note that the Sass files are only available to the Sass/Scss content processors, i.e. no nodes are created for them!

The following statement placed in any Sass stylesheet you use in your webgen website would import the whole Bootstrap CSS framework:

@import "/bootstrap/bootstrap"

The Twitter Bootstrap javascript files are provided as passive nodes under the /javascripts/ path. Note that they depend on JQuery, so the JQuery javascript library needs to be loaded before any of these files!

Installation

The easiest way to install this extension bundle is by installing the corresponding Rubygem:

gem install webgen-sass_twitter_bootstrap-bundle

If you don't use Rubygems, copy the folder lib/webgen/bundle/sass_twitter_bootstrap into your ext directory.

After that you just need to tell webgen to use this extension bundle by adding the following line to your ext/init.rb file:

load("sass_twitter_bootstrap")

Copyright and license

Copyright (c) 2013 Thomas Leitner under the MIT license (see LICENSE)


The used files from the sass-twitter-bootstrap repository are licensed under the Apache License, Version 2 (see https://github.com/jlong/sass-twitter-bootstrap#copyright-and-license).