ouspg / urlhandlers

Discover and Hack URL handlers
MIT License
35 stars 3 forks source link

Add bin/htmlize.py #1

Closed jviide closed 8 years ago

jviide commented 8 years ago

This pull request adds bin/htmlize.py. The script is a rudimentary tool for converting JSON files in a similar format as web/db/handlerpresets.json to a HTML page with embedded links for all the presets.

@ikisusi asked for this (or at least something like it) to bootstrap some new experiment.

The tool accepts 0-n JSON files and outputs the generated HTML to STDOUT, the usage pattern being:

$ python bin/htmlize.py [JSONFILE ...]

For example to htmlizeify the web/db/handlerpresets.json you would run:

$ python bin/htmlize.py web/db/handlerpresets.json
nkapu commented 8 years ago

@jviide Thank you \o/