posit-dev / py-shinyswatch

Bootswatch themes for py-shiny

Home Page:https://posit-dev.github.io/py-shinyswatch/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add meta tag

wch opened this issue · comments

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.