Weekly Meal Planner

<% dates.forEach(dateStr => { %> <% const dateObj = new Date(dateStr); %> <% const isToday = dateStr === today; %>

<%= dateObj.toLocaleDateString('en-US', { weekday: 'short' }) %>

<%= dateObj.getDate() %>

<% if (meal_plans[dateStr] && meal_plans[dateStr].length > 0) { %> <% meal_plans[dateStr].forEach(plan => { %>
<%= plan.meal_type %>
    <% plan.foods.forEach(food => { %>
  • • <%= food.name %>
  • <% }); %>
<%= Math.round(plan.totals.calories) %> cal P:<%= Math.round(plan.totals.protein) %>
<% }); %> <% } else { %>
No meals planned
<% } %>
<% }); %>