rstudio / htmltools

Tools for HTML generation and output
https://rstudio.github.io/htmltools/
215 stars 68 forks source link

Make `save_html()` an S3 generic method #411

Closed cpsievert closed 1 year ago

cpsievert commented 1 year ago

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 (https://github.com/rstudio/bslib/issues/477)