Stylesheet
This class represents a CSS stylesheet media asset, specifically designed to generate HTML link elements. It extends the base media asset functionality by utilizing a predefined template to link external style resources with customizable attributes.
Attributes
| Attribute | Type | Description |
|---|---|---|
| element_template | string = < link href="{path}"{attributes} > | The HTML string template used to render the stylesheet link tag, containing placeholders for the file path and additional attributes. |
Constructor
Signature
def Stylesheet(
href: string,
**attributes: dict
) - > null
Parameters
| Name | Type | Description |
|---|---|---|
| href | string | The URL or path to the stylesheet file. |
| **attributes | dict | Additional keyword arguments to be applied as HTML attributes to the link element. |
Signature
def Stylesheet(
href: string,
**attributes: dict
) - > null
Parameters
| Name | Type | Description |
|---|---|---|
| href | string | The URL or file path to the external CSS stylesheet resource |
| **attributes | dict | Additional HTML attributes to be included in the link element, such as media, integrity, or crossorigin |