Sha256: c51f3b96c374780256f2ac994206cccf6fc358e2f417d5202f1eafc886808c1d

Contents?: true

Size: 393 Bytes

Versions: 21

Compression:

Stored size: 393 Bytes

Contents

- if @type == :visible
  %indexterm>
    %primary=@text
  =@text
- else
  - terms = (attr :terms)
  - numterms = terms.size
  - if numterms > 2
    %indexterm<
      %primary=terms[0]
      %secondary>=terms[1]
      %tertiary>=terms[2]
  - if numterms > 1
    %indexterm<
      %primary=terms[numterms - 2]
      %secondary>=terms[numterms - 1]
  %indexterm<
    %primary=terms[numterms - 1]

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
hyla-1.0.1 lib/resources/backends/haml/docbook45/inline_indexterm.xml.haml