latexml_core/document/resource.rs
1//======================================================================
2// Support for requiring "Resources", ie CSS, Javascript, whatever
3#[derive(Debug, Clone, Default)]
4pub struct Resource {
5 pub name: String,
6 pub media: String,
7 pub mimetype: String,
8 pub content: String,
9}
10
11pub fn resource_type(abbrev: &str) -> String {
12 match abbrev {
13 "css" => "text/css",
14 "js" => "text/javascript",
15 _ => "",
16 }
17 .to_string()
18}