PyWebIO
PyWebIO copied to clipboard
[Feature Request] Provide ability to add script tags or any html to `<header>` directly
Please move to Discussions - Feature Request for posting.
Currently, the temporary solution is to do:
$('head').append('<link rel="icon" type="image/x-icon" href="xxxxx">')
$('head').append('<script async src="https://xxxxxxxx"></script>')
I am hoping we could get a more direct way of adding scripts or any HTML to
tag directly without having to userun_js and append to head tag.
pywebio.config(js_code=...) did this.
See https://pywebio.readthedocs.io/en/latest/platform.html#pywebio.config