hook_test/layouts/shortcodes/slide.html

7 lines
300 B
HTML
Raw Normal View History

2021-12-31 12:44:26 +01:00
{{ $non_data_attributes := slice "id" "class" }}
<section data-noprocess data-shortcode-slide
{{ range $key, $value := $.Params }}
{{ $attribute := cond (in $non_data_attributes $key) $key (delimit (slice "data" $key) "-") }}
{{ $attribute | safeHTMLAttr }}="{{ $value }}"
{{ end }}>