
.. _sardana-devel-macro-hooks-examples:

=========================
Macro hooks examples
=========================

This chapter consists of a series of examples demonstrating how to define
hookable macros and how to programmatically attach hooks to macros.


.. literalinclude:: ../../../../src/sardana/macroserver/macros/examples/hooks.py
   :language: python
   :linenos:
