Create a new element in the head
(
&self,
name: &str,
attributes: &[(&str, String)],
contents: Option<String>,
)
| 72 | |
| 73 | /// Create a new element in the head |
| 74 | fn create_head_element( |
| 75 | &self, |
| 76 | name: &str, |
| 77 | attributes: &[(&str, String)], |
| 78 | contents: Option<String>, |
| 79 | ) { |
| 80 | // This default implementation remains to make the trait compatible with the 0.6 version, but it should not be used |
| 81 | // The element should only be created inside an effect so it is not called while the component is suspended |
| 82 | self.eval(create_element_in_head(name, attributes, contents)); |
| 83 | } |
| 84 | |
| 85 | /// Create a new meta tag in the head |
| 86 | fn create_meta(&self, props: MetaProps) { |
no test coverage detected