Use a struct with a trait rather than several arguments in self_contained_html
#3
Labels
No Label
ci
priority
critical
priority
high
priority
low
status
abandonned
status
accepted
status
help_wanted
status
in_progress
status
refused
status
review_needed
type
bug
type
discussion
type
enhancement
type
question
type
refactor
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: poc/crieur#3
Loading…
Reference in New Issue
Block a user
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, the self_contained_html takes two configuration arguments which are
downloader
, a function to download documents, and base_url, the base url for relative links.It would maybe be better to require one config structure with a trait, as it would allow to reduce argument numbers as well as clarifying the function role.
It would also allow to provide a default
downloader
(¿rename todownload
?) function, and write helpers function for different format (images, css) directly in the trait.