Add param vars to script.html
parent
524ea6392f
commit
c1a9d3f631
@ -1 +1,6 @@
|
|||||||
<script{{ if ne .href (urls.Parse .href).Path }} crossorigin="anonymous"{{ end }} defer integrity="{{ .integrity }}"{{ with .onload }} onload="{{ . | safeJS }}"{{ end }} referrerpolicy="no-referrer" src="{{ partial `paige/func-url.html` .src }}"></script>
|
{{ $href := .href }}
|
||||||
|
{{ $integrity := .integrity }}
|
||||||
|
{{ $onload := .onload | safeJS }}
|
||||||
|
{{ $src := .src }}
|
||||||
|
|
||||||
|
<script{{ if ne $href (urls.Parse $href).Path }} crossorigin="anonymous"{{ end }} defer integrity="{{ $integrity }}"{{ with $onload }} onload="{{ . }}"{{ end }} referrerpolicy="no-referrer" src="{{ partial `paige/func-url.html` $src }}"></script>
|
||||||
|
Loading…
Reference in New Issue