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

feat: rewritten the renderer #280

Merged
merged 2 commits into from
Jan 3, 2024
Merged

feat: rewritten the renderer #280

merged 2 commits into from
Jan 3, 2024

Conversation

ncpa0cpl
Copy link
Collaborator

@ncpa0cpl ncpa0cpl commented Jan 3, 2024

Rewritten the renderer into a more generic solution, previous version had 4 different copies of render functions (html sync /async renderers and json sync/async renderers) and a lot of duplicated code. This new version introduces a generic JsxteRenderer class which performs most of the work while unaware of the final output format, and is capable of both synchornous and asynchronous work. This separation allows for better code reuse and smaller library size, and makes it easier to introduce new changes in the future.

@ncpa0cpl ncpa0cpl force-pushed the refactor/renderer-rewrite branch from af623ae to 3b4c425 Compare January 3, 2024 15:39
@ncpa0cpl ncpa0cpl merged commit 5d95b15 into master Jan 3, 2024
3 checks passed
@ncpa0cpl ncpa0cpl deleted the refactor/renderer-rewrite branch January 3, 2024 15:52
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

Successfully merging this pull request may close these issues.

1 participant