Skip to content
New issue

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

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

Already on GitHub? # to your account

Make save_html() an S3 generic method #411

Merged
merged 8 commits into from
Oct 6, 2023
Merged

Conversation

cpsievert
Copy link
Collaborator

@cpsievert cpsievert commented Oct 5, 2023

This makes save_html() an S3 method, allowing for more customization of the logic used to save a certain class of object to an HTML file. This is useful for things like bslib::card() or bslib::page_fluid() that might want an additional container and/or other logic to run prior to the render/print stage (rstudio/bslib#477)

Copy link
Member

@gadenbuie gadenbuie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

@cpsievert cpsievert marked this pull request as ready for review October 6, 2023 15:49
@cpsievert cpsievert merged commit 2a26d1f into main Oct 6, 2023
@cpsievert cpsievert deleted the save-html-s3-method branch October 6, 2023 20:19
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants