@hug.directive(apply_globally=True)
def my_directive_global(default=None, **kwargs):
 return default

@ hug . directive ( apply_globally = True ) def my_directive_global ( default = None , ** kwargs ) : return default
for testing .