quick_website#
- toui.apps.quick_website(name='App', html_file=None, html_str=None, url='/', assets_folder=None, secret_key=None)[source]#
Creates a web app and adds a single Page to it.
- Parameters:
name (str (optional)) – The name of the app.
html_file (str (optional)) – The path to the HTML file that will be used to create the Page.
html_str (str (optional)) – The content of the Page.
url (str (optional)) – The URL of the Page.
assets_folder (str (optional)) – The path to the folder that contains the HTML file. If no HTML files are used, you can ignore this parameter.
secret_key (str (optional)) – Sets the secret_key attribute for flask.Flask
- Return type: