<handle> respond to a signal

name
handle
xml namespace
http://moyaproject.com

Handles a signal. A signal is a way of broadcasting to other parts of the project that a particular event has occurred.

See Signals for more information.

Example

<!-- Moya fires a number of signals itself, for various system events -->
<handle signal="sys.startup">
    <log>This code executes on startup, prior to any requests</log>
</handle>
<!-- Handle a custom signal -->
<handle signal="mordor.arrived">
    <log>${hobbit} has arrived in Mordor!</log>
</handle>
attributes
name purpose type required? default choices
sender Only handle the signal(s) if sent from this element(s). comma list No
signal Signal name to handle. Multiple names may be specified to handle more than one signal. comma list Yes
inherited attributes
name purpose type required? default choices
if Conditional expression expression No yes