From 22c0026eb6f6a47777d8b31e2cecaa4f17805169 Mon Sep 17 00:00:00 2001 From: thijsoid <1070493@hr.nl> Date: Wed, 27 Mar 2024 11:56:48 +0000 Subject: [PATCH] Add random test to preface page in book template --- templates/book.jinja | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/templates/book.jinja b/templates/book.jinja index 9eca74c..cf8e07c 100644 --- a/templates/book.jinja +++ b/templates/book.jinja @@ -58,6 +58,15 @@ This EPUB is a generated compilation of logs with annotations that provide context to the situatedness of this technology. With one book a day, a diary of chopchop is kept, stored and shared.
+This is a random number: {{ range(1, 51) | random }}?
+ {% set dice = range(1, 4) | random %} + {% if dice < 2 %} + dice = 1 + {% elif dice < 3%} + dive = 2> + {% else %} + dice = 3 + {% endif %}