mirror of
https://github.com/twbs/bootstrap.git
synced 2024-11-29 11:24:18 +01:00
13 lines
390 B
HTML
13 lines
390 B
HTML
{{- /*
|
|
Work around wrong escapes in integrity attributes.
|
|
*/ -}}
|
|
|
|
{{- $name := .Get 0 -}}
|
|
{{- with $name -}}
|
|
{{- $value := $.Page.Param . -}}
|
|
{{- if in $name "_hash" -}}
|
|
{{- $value = $value | safeHTML -}}
|
|
{{- end -}}
|
|
{{- with $value }}{{ . }}{{ else }}{{ errorf "Param %q not found: %s" $name $.Position }}{{ end -}}
|
|
{{- else }}{{ errorf "Missing param key: %s" $.Position }}{{ end -}}
|