Assign template context to var
This commit is contained in:
@@ -1,22 +1,24 @@
|
||||
{{ $alt := .alt }}
|
||||
{{ $class := .class }}
|
||||
{{ $crossorigin := .crossorigin | default "anonymous" }}
|
||||
{{ $fetchpriority := .fetchpriority }}
|
||||
{{ $fingerprint := .fingerprint | default true }}
|
||||
{{ $height := .height }}
|
||||
{{ $loading := .loading | default "lazy" }}
|
||||
{{ $maxheight := .maxheight }}
|
||||
{{ $maxwidth := .maxwidth }}
|
||||
{{ $method := .method }}
|
||||
{{ $options := .options }}
|
||||
{{ $page := .page }}
|
||||
{{ $raw := .raw }}
|
||||
{{ $referrerpolicy := .referrerpolicy | default "no-referrer" }}
|
||||
{{ $resource := .resource }}
|
||||
{{ $src := .src }}
|
||||
{{ $style := .style }}
|
||||
{{ $title := .title }}
|
||||
{{ $width := .width }}
|
||||
{{ $params := . }}
|
||||
|
||||
{{ $alt := $params.alt }}
|
||||
{{ $class := $params.class }}
|
||||
{{ $crossorigin := $params.crossorigin | default "anonymous" }}
|
||||
{{ $fetchpriority := $params.fetchpriority }}
|
||||
{{ $fingerprint := $params.fingerprint | default true }}
|
||||
{{ $height := $params.height }}
|
||||
{{ $loading := $params.loading | default "lazy" }}
|
||||
{{ $maxheight := $params.maxheight }}
|
||||
{{ $maxwidth := $params.maxwidth }}
|
||||
{{ $method := $params.method }}
|
||||
{{ $options := $params.options }}
|
||||
{{ $page := $params.page }}
|
||||
{{ $raw := $params.raw }}
|
||||
{{ $referrerpolicy := $params.referrerpolicy | default "no-referrer" }}
|
||||
{{ $resource := $params.resource }}
|
||||
{{ $src := $params.src }}
|
||||
{{ $style := $params.style }}
|
||||
{{ $title := $params.title }}
|
||||
{{ $width := $params.width }}
|
||||
|
||||
{{ $intrinsicheight := $height }}
|
||||
{{ $intrinsicwidth := $width }}
|
||||
|
Reference in New Issue
Block a user