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, global_sessions_config_args)
the path the to html file. See the details for more info.
arguments to be passed to global_sessions_config
.
a Shiny app object
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