{{ $js := resources.Get "js/main.js" }}
{{ with $js }}
{{ $secureJS := . | resources.Minify | resources.Fingerprint }}
<script src="{{ $secureJS.Permalink }}" integrity="{{ $secureJS.Data.Integrity }}"></script>
{{ end }}