home // archives //
« back to archive
A decorator for adding a function to template globals would help hide some internals: @app.template_global def do_something(): return "OK" This would be the equivalent of app.jinja_env.globals['do_something'] = do_something
Archives based on code by Armin Ronacher //