{%- assign names = include.class | split: "-" -%} {%- assign fnames = include.fun | split: "-" -%} {%- if include.text -%} {{include.text}} {%- else -%} {%- for it in names -%} {{ it | capitalize }} {%- endfor -%} {%- if include.fun -%} {%- if include.class -%}.{%- endif -%} {{fnames[0]}} {%- for it in fnames offset:1 -%} {{it | capitalize}} {%- endfor -%} {%- endif -%} {%- endif -%} {%- if false -%}this prevents adding an accidental newline here{%- endif -%}