README 791 B

1234567891011121314151617
  1. KamitKami is a python script which takes as input 2 files of foo.css and bar.html and outputs
  2. a smaller bar_foo.css file to be included in bar.html . bar_foo.css has only the elements used in bar.html
  3. and no more. This helps the site to load faster by reducing data to be transferred. It also saves quite some energy
  4. if adopted by high traffic sites.
  5. python kamitkami.py foo bar
  6. For multiple files, use shellscript saglachkami.sh as follows:
  7. 1. Create directory with all html files and single css file which needs to be made smaller.
  8. 2. ./saglachkami.sh {path_to_above_directory} {name_of_css_file}
  9. Caution : Files will be created in current directory and any with name <html_name>_<css_name>.css will be overwritten.
  10. YET TO DO
  11. 1. Minify generated css optionally by keeping a keyword.