We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
HtmlFragments
1 parent 28bad2b commit 1eb4861Copy full SHA for 1eb4861
1 file changed
crates/anstyle-svg/src/lib.rs
@@ -316,6 +316,24 @@ impl Term {
316
}
317
318
319
+/// Contains the different parts of a HTML rendered page.
320
+pub struct HtmlFragments {
321
+ style: String,
322
+ body: String,
323
+}
324
+
325
+impl HtmlFragments {
326
+ /// Content that can be used directly in a `<style>` tag.
327
+ pub fn style(&self) -> &str {
328
+ &self.style
329
+ }
330
331
+ /// Content that can be put in the HTML body or any tag inside the `<body>`.
332
+ pub fn body(&self) -> &str {
333
+ &self.body
334
335
336
337
const FG_COLOR: anstyle::Color = anstyle::Color::Ansi(anstyle::AnsiColor::White);
338
const BG_COLOR: anstyle::Color = anstyle::Color::Ansi(anstyle::AnsiColor::Black);
339
0 commit comments