secure_static()
can be used to secure any HTML
page using polished
. It is often used to add polished
to .Rmd
htmloutput
and flexdashboards.
secure_static(
html_file_path,
polished_config_args,
sign_out_button = shiny::actionLink("sign_out", "Sign Out", icon =
shiny::icon("sign-out-alt"), class = "polished_sign_out_link")
)
a Shiny app object
the path the to HTML file. See the details for more info.
arguments to be passed to polished_config
.
action button or link with inputId = "sign_out"
. Set to NULL
to not include a sign out button.
To secure a static HTML page, place the HTML page in a folder named "www"
and call secure_static()
from a file named app.R
. The file structure should
look like:
app.R
www/
index.html
See an example here: https://github.com/Tychobra/polished_example_apps/tree/master/05_flex_dashboard