posit-dev / py-shinyswatch

Bootswatch themes for py-shiny
https://posit-dev.github.io/py-shinyswatch/
MIT License
28 stars 3 forks source link

Add meta tag #13

Closed wch closed 1 year ago

schloerke commented 1 year ago

Already supported. 🎉

import shiny
a = shiny.ui.page_bootstrap().get_dependencies()[1]
a.meta
#> [{'name': 'viewport', 'content': 'width=device-width, initial-scale=1'}]

import shinyswatch
d = shinyswatch.theme.darkly()
d
#> [<HTMLDependency "bootstrap-no-files-5.2.2">, <HTMLDependency "bootstrap-9999">, <HTMLDependency "bootstrap-js-5.2.2">, <HTMLDependency "bootswatch-darkly-and-bootstrap-5.2.2">]
d[0].meta
#> [{'name': 'viewport', 'content': 'width=device-width, initial-scale=1'}]

Closing.