Integrate events data into template