TODO List Application
{% with messages = get_flashed_messages() %} {% if messages %}
{% for message in messages %}
{{ message }}
{% endfor %}
{% endif %} {% endwith %}
Add Task
{% for task in tasks %}
{{ task.title }}
{{ task.due_date.strftime('%Y-%m-%d %H:%M') if task.due_date else 'No Due Date' }}
Edit
Delete
{% if task.complete %}Complete{% else %}Incomplete{% endif %}
{% endfor %}