14 lines
355 B
Python
14 lines
355 B
Python
from app import app
|
|
from flask import url_for
|
|
from config import V5Config
|
|
|
|
@app.context_processor
|
|
def utilities_processor():
|
|
""" Add some utilities to render context """
|
|
return dict(
|
|
len=len,
|
|
# enumerate=enumerate,
|
|
_url_for = lambda route, args, **other: url_for(route, **args, **other),
|
|
V5Config = V5Config,
|
|
)
|