A script which gives the most minimal css file depending on html document.

Sagar Acharya a26eec4bf5 corrected css file names for test and normal file %!s(int64=3) %!d(string=hai) anos
LICENSE.md 040aa965f2 added pre version %!s(int64=3) %!d(string=hai) anos
README d7d468bd18 small shebang correction and minor change in README %!s(int64=3) %!d(string=hai) anos
bar.html a26eec4bf5 corrected css file names for test and normal file %!s(int64=3) %!d(string=hai) anos
bar_foo.css a26eec4bf5 corrected css file names for test and normal file %!s(int64=3) %!d(string=hai) anos
bar_test.html a26eec4bf5 corrected css file names for test and normal file %!s(int64=3) %!d(string=hai) anos
foo.css 5ef583b865 Completed version alpha; Added looping over folder. %!s(int64=3) %!d(string=hai) anos
kamitkami.py a26eec4bf5 corrected css file names for test and normal file %!s(int64=3) %!d(string=hai) anos
saglachkami.sh d7d468bd18 small shebang correction and minor change in README %!s(int64=3) %!d(string=hai) anos

README

KamitKami is a python script which takes as input 2 files of foo.css and bar.html and outputs
a smaller bar_foo.css file to be included in bar.html . bar_foo.css has only the elements used in bar.html
and no more. This helps the site to load faster by reducing data to be transferred. It also saves quite some energy
if adopted by high traffic sites.

python kamitkami.py foo bar

For multiple files, use shellscript saglachkami.sh as follows:
1. Create directory with all html files and single css file which needs to be made smaller.
2. ./saglachkami.sh {path_to_above_directory} {name_of_css_file}

Caution : Files will be created in current directory and any with name _.css will be overwritten.


YET TO DO
1. Minify generated css optionally by keeping a keyword.