{{ $uniq := .Inner | htmlEscape | base64Encode | truncate 20 "" | lower }} {{ $template := printf "template-%s" $uniq }} {{ $string := replace "" "%s" $uniq }}