ssg_reloader

simple webserver, injects js into html sites that reloads sites when source is changed


License
GPL-3.0
Install
pip install ssg_reloader==0.1.1

Documentation

ssg_reloader

ssg_reloader is a static site generation development server, which injects js into html to force browser reloads on file changes.

Usage

ssgreloader -h

Example

/ssgreloader -i 0.0.0.0 -p 5000 -t 3000 -d test/test_data/

  • -i 0.0.0.0 accept connections on all ip addresses
  • -p 5000 run on port 5000
  • -d enable debugging information
  • -t 3000 timeout between ajax requests
  • test/test_data/ root directory to serve via http

Installation

pip install ssg_reloader

todo

  • write basic flask app
  • detect filechanges
  • inject js
  • rewrite injection to not use bs4 and use something faster