From 18853a2baf20017e926e4bb465e3c02bb5a7af97 Mon Sep 17 00:00:00 2001 From: WriterV2 Date: Sat, 3 Sep 2022 18:45:45 +0200 Subject: Universalize method to create context from works and pass entire works object --- templates/stories.html | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'templates/stories.html') diff --git a/templates/stories.html b/templates/stories.html index e69de29..34384a3 100644 --- a/templates/stories.html +++ b/templates/stories.html @@ -0,0 +1,8 @@ +{% extends "base.html" %} +{% block title %}Stories{% endblock title %} +{% block content %} +{% for work in works %} + {{work.title}} + {{work.description}} +{% endfor %} +{% endblock content %} -- cgit v1.2.3