from datetime import datetime from atlas_um.auth.utils import current_user def register_context_processors(app): app.context_processor(_inject_now) app.context_processor(_inject_current_user) def _inject_now(): return {"now": datetime.utcnow()} def _inject_current_user(): return {"current_user": current_user}