def hook(self, name):
        def wrapper(func):
            self.hooks.add(name, func)
            return func
        return wrapper
Return a decorator that attaches a callback to a hook. Three hooks
dataset/ETHPy150Open adampresley/bottlepy-bootstrap/app/bottle.py/Bottle.hook