Template support for events.