Separates the JS script into its own file, with cleaner code
Update the westminster python code to py3
Fix the python code
Rewrite the Python code, which includes chopping it up in functions
Change the data passed from the JS to the Python
Move the hashing from the builtin hash function, which is intentionally unreliable on strings, to SHA256, to fix the caching of Westminster diagrams.
The code should become far easier to read and to maintain.
The resulting diagram should be the same... well it currently doesn't work so it won't be easy to compare, but apart from the link in a comment in the SVG code and possibly some whitespace it should be the same.
The implementation is available on Beta.
I will merge this in one or two weeks (May 24 or 31) if no feedback is provided before then.
The code should become far easier to read and to maintain. The resulting diagram should be the same... well it currently doesn't work so it won't be easy to compare, but apart from the link in a comment in the SVG code and possibly some whitespace it should be the same.
The implementation is available on Beta. I will merge this in one or two weeks (May 24 or 31) if no feedback is provided before then.