Move summarization out of the document template #6
Labels
No labels
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Depends on
#4 Support "frontmatter"
slendium/slendium-static
Reference
slendium/slendium-static#6
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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
HTMLDocumentinstance 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.