Script to migrate bootstrap 2 templates to bootstrap3.
Project description
Helps to convert your templates from bootstap2 to 3.
Replaces all bootstarp 2 classes to corresponding 3 classes
Converts span* classes intelligently to col-mod-*
How to use as a script
python bootstrap_2to3.py <root-project-directory>
This finds all .html files under the root folder and replaces bootstrap2 classes.
As a library
pip install bootstrap_2to3
from bootstrap_2to3 import convert
convert() # To convert all .html files under current directory convert(‘/user/works/project’) # To convert all .html files under given directory
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
bootstrap_2to3-0.1.tar.gz
(1.6 kB
view hashes)