block generation from context_processor (for app) and app_context_processor (for blueprint)