diff options
author | Lars Wirzenius <liw@liw.fi> | 2023-10-30 18:45:13 +0200 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2023-10-30 19:08:10 +0200 |
commit | 5a84e1bde773bdc782c1db5a633ef8765f220253 (patch) | |
tree | 93b283272bcc4854cbd96592dd381d09f77cac77 /src/doc.rs | |
parent | 7252cf5c1e0288b1bbb54908999fc7524d12bf1e (diff) | |
download | subplot-5a84e1bde773bdc782c1db5a633ef8765f220253.tar.gz |
feat: allow .subplot to list CSS files to embed in HTML output
This is in the meta data field "css_embed".
Signed-off-by: Lars Wirzenius <liw@liw.fi>
Sponsored-by: author
Diffstat (limited to 'src/doc.rs')
-rw-r--r-- | src/doc.rs | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -155,6 +155,9 @@ impl Document { let mut css = Element::new(ElementTag::Style); css.push_child(Content::Text(CSS.into())); + for css_file in self.meta.css_embed() { + css.push_child(Content::Text(css_file.into())); + } head.push_child(Content::Elt(css)); self.meta.set_date(date.into()); |