diff2html icon indicating copy to clipboard operation
diff2html copied to clipboard

Creating a Custom Render Class in diff2html for Flexible Template Rendering

Open weng7654 opened this issue 6 months ago • 0 comments

To implement a custom render class, extract the FileListRenderer, LineByLineRenderer, and SideBySideRenderer classes and create a parent class called BaseRenderer. This allows the diff2html config to use a custom render class (which inherits from BaseRenderer). In this way, you can define custom rendering rules for the page, making the template more flexible.

weng7654 avatar Aug 07 '24 07:08 weng7654