2019-12-04 01:16:16 +01:00
|
|
|
from app import app
|
2019-12-07 16:34:39 +01:00
|
|
|
from flask import url_for
|
2020-07-17 23:49:04 +02:00
|
|
|
from config import V5Config
|
2020-07-30 14:49:18 +02:00
|
|
|
from slugify import slugify
|
2019-12-04 01:16:16 +01:00
|
|
|
|
|
|
|
@app.context_processor
|
|
|
|
def utilities_processor():
|
|
|
|
""" Add some utilities to render context """
|
|
|
|
return dict(
|
2019-12-07 16:34:39 +01:00
|
|
|
len=len,
|
|
|
|
# enumerate=enumerate,
|
|
|
|
_url_for = lambda route, args, **other: url_for(route, **args, **other),
|
2020-07-17 23:49:04 +02:00
|
|
|
V5Config = V5Config,
|
2020-07-30 14:49:18 +02:00
|
|
|
slugify=slugify,
|
2019-12-04 01:16:16 +01:00
|
|
|
)
|