I find it really weird that the template receives one argument `date` which contains 2 dates.. I think we should pass `startDate` and `endDate` as separate arguments.