Version: v0.7.0 - Beta.  We welcome contributors & feedback.

Web.cssLink

Web.cssLink($cssUrl) -> HtmlString

Description

Return a stylesheet link tag for the given URL.

If the URL is a local path, the file will be minified and gzip compressed (optimizing up to 75% over the wire), and a cache timestamp will be appended to the query string.

This can be changed with the compressAssets configuration.

Web.cssLink(url'/css/app.css')

//= <link rel="stylesheet" href="/css/app.css.min.gz?v=345251" />

See Also