No commit activity in last 3 years
No release in over 3 years
A gem to convert all markup in .html and .html.erb files in a folder from Bootstrap 2 into Bootstrap 3 markup.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.5
~> 10.2

Runtime

 Project Readme

ConvertToBootstrap3

This gem converts all .html files in a folder from Bootstrap 2.x into Bootstrap 3.0.2 markup. This includes language specific files like .html.erb, or others. You need an active internet connection to use this gem.

Dependencies

Requires PhantomJS headless browser.

Installation

Add this line to your application's Gemfile:

gem 'convert_to_bootstrap3'

And then execute:

$ bundle

Or install it yourself as:

$ gem install convert_to_bootstrap3

Usage

Go to the root folder of your project, and run the command "convert_to_bootstrap_3" from a terminal or shell. This will go through all your files (including ones in subdirectories) and convert the markup from Bootstrap 2.x to Bootstrap 3.0.2 markup. Spacing/tabbing and identation may, or may not, be altered in the process, and you should NOT consider this production ready code. Reviewing the results and making sure everything is correct manually is recommended, but this tool will considerably lessen your time spent converting the markup in your projects.

If you want to use ConvertToBootstrap3 in your code do

converter = ConvertToBootstrap3::Converter.new
converter.convert_in_place("directory/")

the directory parameter is optional, but needs to have the forward slash at the end.

Contributing

  1. Fork it ( http://github.com/dmastylo/convert_to_bootstrap3/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request