Welcome to mirror list, hosted at ThFree Co, Russian Federation.

param.html « shortcodes « layouts « site - github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 50e2060ae2dc5074c89eabeef461b4aecc298bbf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
{{- /*
  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 -}}