Add param vars to script.html
This commit is contained in:
		| @@ -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> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user