Listen for events like click, touch, etc in a template using attributes.