(func)
| 649 | """ Return a decorator that attaches a callback to a hook. See |
| 650 | :meth:`add_hook` for details.""" |
| 651 | def decorator(func): |
| 652 | self.add_hook(name, func) |
| 653 | return func |
| 654 | return decorator |
| 655 | |
| 656 | def mount(self, prefix, app, **options): |