diff --git a/pywebio/platform/tpl/index.html b/pywebio/platform/tpl/index.html
index b6243698..45acb4bf 100644
--- a/pywebio/platform/tpl/index.html
+++ b/pywebio/platform/tpl/index.html
@@ -41,7 +41,11 @@
diff --git a/pywebio/platform/utils.py b/pywebio/platform/utils.py
index 96c7cc5b..f88a1c1a 100644
--- a/pywebio/platform/utils.py
+++ b/pywebio/platform/utils.py
@@ -52,7 +52,9 @@ def render_page(app, protocol, cdn):
return _index_page_tpl.generate(title=meta.title or 'PyWebIO Application',
description=meta.description, protocol=protocol,
- script=True, content='', base_url=cdn, bootstrap_css=bootstrap_css)
+ script=True, content='',
+ footer_content=getattr(app, '_pywebio_footer', None),
+ base_url=cdn, bootstrap_css=bootstrap_css)
def bootstrap_css_url():
@@ -314,3 +316,21 @@ def decorator(func):
return func
return decorator
+
+def footer(footer_html):
+ """Set Custom footer information
+
+ :param str footer_html: Html that should be in footer
+
+
+ @footer("PyWebIO 2021")
+ def foo():
+ pass
+
+ """
+ def decorator(func):
+ func._pywebio_footer = footer_html
+ return func
+
+ return decorator
+