stylesheet_tag
Generate an HTML <link> tag for the specified resource URL. This tag includes the following attributes:
| Attribute | Value |
|---|---|
rel | stylesheet |
type | text/css |
media | all |
Parameters
url{String}: The CDN URL link. This parameter is required.[hash.media]{String}: The media attribute. Optional.returns{String}: Returns an HTML string.
Usage
{{ stylesheet_tag url [media=str] }}
Example
{{ stylesheet_tag (asset_url 'base.css') }}
Was this article helpful to you?