skip to navigation
skip to content

Not Logged In

b2tob3 0.4

Help migrate HTML files and templates form bootstrap 2 to 3.

Package Documentation

https://badge.fury.io/py/b2tob3.png https://travis-ci.org/yaph/b2tob3.png?branch=master

Easier migration from Boostrap 2 to Boostrap 3

b2tob3 is a command line tool to help migrate Web projects from bootstrap 2 to bootstrap 3 by performing a set of replacements that reflect bootstrap 3 class name changes.

b2tob3 searches all files ending in .html, .htm, .css or .js in the current directory and its subdirectories. You can specify the working directory with the d option like b2tob3 -d /path/to/dir.

b2tob3 does not fully automate migration, but it takes away some of the tedious work. Still, you'll most likely need to perform manual fixes too.

Installation

pip install b2tob3

Usage

cd /project/html/
b2tob3

Follow these steps to avoid frustration:

  • Put your HTML/template files under version control, if they aren't yet.
  • Change to the directory with the files containing Boostrap 2 specific markup.
  • Run the b2tob3 script once and only once.
  • Review the changes with a diff tool suitable for the version control system you use.
  • Perform the rest of the necessary changes manually.

Contributing

  • Let me know about bugs by posting an issue.
  • Help reduce the manual work by improving the code.
  • Write tests.

Contributors

Thanks to @demiurg for adding more robust replacements and command line options.

 
File Type Py Version Uploaded on Size
b2tob3-0.4.tar.gz (md5) Source 2013-09-09 4KB
  • Downloads (All Versions):
  • 60 downloads in the last day
  • 397 downloads in the last week
  • 1094 downloads in the last month
  • Author: Ramiro Gómez
  • Documentation: b2tob3 package documentation
  • License:
    Copyright (C) 2013 by Ramiro Gómez (http://ramiro.org/)
    
    Permission is hereby granted, free of charge, to any person obtaining a copy of
    this software and associated documentation files (the "Software"), to deal in
    the Software without restriction, including without limitation the rights to
    use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
    the Software, and to permit persons to whom the Software is furnished to do so,
    subject to the following conditions:
    
    The above copyright notice and this permission notice shall be included in all
    copies or substantial portions of the Software.
    
    THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
    IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
    FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
    COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
    IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
    CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  • Categories
  • Package Index Owner: ramiro
  • DOAP record: b2tob3-0.4.xml