def helper_here():
 html = u"<!DOCTYPE html>\n    <html>\n        <head>\n            <title>Hello from Flask</title>\n        </head>\n        <body>Hello World, helper here: {{ h.render_markdown('*hi*') }}</body>\n    </html>"
 return render_template_string(html)

def helper_here ( ) : html = u"<!DOCTYPE html>\n    <html>\n        <head>\n            <title>Hello from Flask</title>\n        </head>\n        <body>Hello World, helper here: {{ h.render_markdown('*hi*') }}</body>\n    </html>" return render_template_string ( html )
a simple template with a helper that exists .