Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Creating a Custom Render Class in diff2html for Flexible Template Rendering #539

Open
weng7654 opened this issue Aug 7, 2024 · 0 comments

Comments

@weng7654
Copy link

weng7654 commented Aug 7, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant