Volunteer Janitor: Initial hooks.
This commit is contained in:
parent
8a9e1bc54a
commit
e43db0535d
7 changed files with 41 additions and 0 deletions
|
@ -66,3 +66,7 @@ def inject_constants():
|
|||
"COLORS":COLORS,
|
||||
"THEMES":THEMES,
|
||||
}
|
||||
|
||||
def template_function(func):
|
||||
assert(func.__name__ not in app.jinja_env.globals)
|
||||
app.jinja_env.globals[func.__name__] = func
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue