-
Notifications
You must be signed in to change notification settings - Fork 10
Description
Is your feature request related to a problem? Please describe.
Some parts of the HTML content are created by the JavaScript code. Namely, the tables and other HTML content in the "Show test details" section are created by instating elements and attributes by calling JavaScript functions.
Please see openscap_report/report_generators/html_templates/js/oval_graph_generation_script.js, for example
openscap-report/openscap_report/report_generators/html_templates/js/oval_graph_generation_script.js
Line 669 in 813a440
function generate_OVAL_state(test_info, oval_state, div, off_heading=false) { |
openscap-report/openscap_report/report_generators/html_templates/js/oval_graph_generation_script.js
Line 820 in 813a440
function get_OVAL_test_info(test_info) { |
openscap-report/openscap_report/report_generators/html_templates/js/oval_graph_generation_script.js
Line 553 in 813a440
function get_table_body(objects) { |
This approach is tedious, laborious, hard to orient in and difficult to maintain. Moreover, it mixes a definition of the presentation layout with data processing.
Describe the solution you'd like
It would be great to employ Jinja 2 templates here or some other "templating" technology.
Describe alternatives you've considered
I haven't considered any alternatives yet. But I'm open to any proposals or suggestions.
Additional context
None