diff --git a/senju/haiku.py b/senju/haiku.py index 6d7aeff..15d2a28 100644 --- a/senju/haiku.py +++ b/senju/haiku.py @@ -3,4 +3,4 @@ from dataclasses import dataclass @dataclass class Haiku: - text: str + lines: list[str] diff --git a/senju/templates/haiku.html b/senju/templates/haiku.html index 39feb77..844dfff 100644 --- a/senju/templates/haiku.html +++ b/senju/templates/haiku.html @@ -2,19 +2,19 @@ {% block content %}
- An old silent pond
- A frog jumps into the pond—
- Splash! Silence again.
-
+ {% for line in context.haiku.lines %}
+ {{ line }}
+ {% endfor %}
+