stylesheet
Generates an HTML <link> tag for a given CSS resource URL.
{{#stylesheet url [preload=boolean] [media=string] /}}
Params
-
urlstring: CSS resource URL.
Hash Params
-
preloadboolean: If or not preloading is required, a value oftruewill add the asset URL to the Link header as well. -
mediastring: Sets the media property.
Example
Generate link tags for css files in themes
{{#stylesheet "base/index.css" | asset_url() /}}
Was this article helpful to you?