From c05cbf4cbc117cb6063eec75c0083516ca9c40b7 Mon Sep 17 00:00:00 2001 From: lew Date: Fri, 10 Apr 2026 01:22:09 +0100 Subject: [PATCH] feat: extracts out the success page to an actual template --- .env.example | 5 +++ Cargo.lock | 2 +- Cargo.toml | 2 +- README.md | 25 +++++++++++---- module.nix | 44 +++++++++++++++----------- src/config.rs | 16 ++++++++++ src/render.rs | 72 ++++++++++++++++++++++++++++++++++++++++++ src/web.rs | 64 ++++++++++++++++++++++++++++--------- templates/success.html | 28 ++++++++++++++++ 9 files changed, 216 insertions(+), 42 deletions(-) create mode 100644 templates/success.html diff --git a/.env.example b/.env.example index be53f25..133e6cb 100644 --- a/.env.example +++ b/.env.example @@ -88,6 +88,11 @@ # Uses built-in default if unset. # BOOK_TEMPLATE=./templates/default.html +# Custom success page template shown after a successful submission. +# Supports {{title}} and {{style}} placeholders. Use