For better maintainability this code should be kept outside of the Python module and read + minified dynamically, upon module execution or when the module is packaged.
To state the obvious: This will allow to better focus on Python code in the Python module, and JavaScript and CSS in the other two files, with proper syntax highlighting and IDE editing support.
The
html
module contains more than just Python code:For better maintainability this code should be kept outside of the Python module and read + minified dynamically, upon module execution or when the module is packaged.
To state the obvious: This will allow to better focus on Python code in the Python module, and JavaScript and CSS in the other two files, with proper syntax highlighting and IDE editing support.