1 2 3 4 5
{{ $id := delimit (slice "gallery" (partial "functions/uid.html" .)) "-" }} <div id="{{ $id }}" class="gallery"> {{ .Inner }} </div>