list.html 578 B

12345678910111213141516171819202122232425
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6. <title>Today's to-do List</title>
  7. <style>
  8. body {
  9. background-color: transparent;
  10. color: black;
  11. }
  12. </style>
  13. </head>
  14. <body>
  15. <h1>Today's to-do List</h1>
  16. <ul>
  17. {% for item in items %}
  18. <li style="text-decoration: {{ 'line-through' if item.checked else 'none' }};">
  19. {{ item.name }}
  20. </li>
  21. {% endfor %}
  22. </ul>
  23. </body>
  24. </html>