<div class="glosscontainer">
    <div class="gloss">
        {{- range $g := split .Inner "\n" -}}
            {{- if hasPrefix $g "{t}" -}}
                <div class="glosstop">
                    {{- substr $g 3 -}}
                </div>
            {{- else if hasPrefix $g "{m}" -}}
                <div class="glossmiddle">
                    {{- range (split (substr $g 3) "|") -}}
                        {{- with . -}}
                            <div class="glosswords">
                                {{- range (split . "," ) -}}
                                    <div class="glossword">{{- . -}}</div>
                                {{- end -}}
                            </div>
                        {{- end -}}
                    {{- end -}}
                </div>
            {{- else if hasPrefix $g "{b}" -}}
                <div class="glossbottom">
                    {{- substr $g 3 -}}
                </div>
            {{- end -}}
        {{- end -}}
    </div>
    <div class="glossnumber"></div>
</div>