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

Web.jsLink

Web.jsLink($jsUrl) -> HtmlString

Description

Return a <script> 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.

The tag contains a nonce parameter to conform to the CSP security protocol.

Web.jsLink(url'/js/app.js')

//= <script src="/js/app.js.min.gz?v=345251" nonce="gdfw23sdshjsd..."></script>

See Also