<% if (favs?.events?.length > 0) { %>
<% for(const event of favs.events) { %>
<% if (event.venueAndTitle) {
const parts = event.venueAndTitle.replace(/(?:\r\n|\r|\n)/g, '').split(' | ');
event.title = parts.pop().trim();
event.venueName = parts.length > 0 ? parts[0].trim() : '';
} %>
<%= event.day %>
<%= event.time %>
<%= event.title %>
<%= event.description %>
more...
<% } %>
<% } else { %>
No favourite events yet.
You may add some at the
events page.
<% } %>