rstudio / htmltools

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

Support htmlDependency(stylesheet = ) list() attributes #272

Open cpsievert opened 3 years ago

cpsievert commented 3 years ago

Similar to the interface added to htmlDependency(script = ) for adding <script> attributes (added in #188 and rstudio/shiny#3395), we could do something similar in htmlDependency(stylesheet = ) for adding <link> attributes, which seems primarily useful for the media attribute

maelle commented 3 years ago

Similarly I'd also like to be able to change the filename (to name one dark, one light, specifically, but maybe this could have other use cases?).