shinylive Python package 0.5.0
-
Updated to Shinylive web assets 0.5.0.
-
shinylive.export()gainstemplate_paramsandtemplate_dirarguments that are reflected in the CLI as--template-paramsand--template-dirarguments toshinylive export.These options control the template HTML files used in the export, allowing users to partially or completely customize the exported HTML. The export template is provided by the shinylive assets and may change from release-to-release. Use
shinylive assets infoto locate installed shinylive assets; the template files for a given release are in theexport_templatedirectory of the release. (#32)template_paramstakes a list of parameters to be interpolated into the template. In the CLI--template-paramstakes a string of JSON or a path to a JSON file. The default template includestitle(the title for the page with the exported app),include_in_head(HTML added to the<head>of the page), andinclude_before_body(HTML added just after<body>) andinclude_after_body(HTML added just after</body>).template_diris the directory containing the template files. The default is theexport_templatedirectory of the shinylive assets being used for the export. Useshinylive assets infoto locate installed shinylive assets where you can find the default template files.