You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
10 lines
626 B
HTML
10 lines
626 B
HTML
{{ $crossorigin := .crossorigin | default "anonymous" }}
|
|
{{ $defer := .defer | default "defer" }}
|
|
{{ $href := .href }}
|
|
{{ $integrity := .integrity }}
|
|
{{ $onload := .onload | safeJS }}
|
|
{{ $referrerpolicy := .referrerpolicy | default "no-referrer" }}
|
|
{{ $src := .src }}
|
|
|
|
<script {{ if ne $href (urls.Parse $href).Path }} {{ with $crossorigin }} crossorigin="{{ . }}" {{ end }} {{ with $defer }} defer {{ end }} {{ with $integrity }} integrity="{{ . }}" {{ end }} {{ with $onload }} onload="{{ . }}" {{ end }} {{ with $referrerpolicy }} referrerpolicy="{{ . }}" {{ end }} src="{{ partial `paige/func-url.html` $src }}"></script>
|