Move summarization out of the document template #6

Open
opened 2026-06-13 08:30:45 +02:00 by c.fahner · 0 comments
Owner

Currently summarization happens during post-processing of an already-generated document inside the document template. The document template therefor has two responsibilities: generating the document and then immediately post-processing it.

Instead, summarization should happen just before the HTMLDocument instance is converted to bytes. This ensures that summarization is guaranteed to happen and does not depend on the template implementation. It also allows front matter information to be incorporated. The document template would just be concerned with generating the base document.

Currently summarization happens during post-processing of an already-generated document inside the document template. The document template therefor has two responsibilities: generating the document and then immediately post-processing it. Instead, summarization should happen just before the `HTMLDocument` instance is converted to bytes. This ensures that summarization is guaranteed to happen and does not depend on the template implementation. It also allows front matter information to be incorporated. The document template would just be concerned with generating the base document.
c.fahner added this to the v0.3 milestone 2026-06-13 08:30:45 +02:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Depends on
#4 Support "frontmatter"
slendium/slendium-static
Reference
slendium/slendium-static#6
No description provided.