Sha256: 208bba7f47452a0332e345931973fc736bfcd0a411270d3b7cb085f2e58107bd

Contents?: true

Size: 1.69 KB

Versions: 21

Compression:

Stored size: 1.69 KB

Contents

- case attr :style
- when 'qanda'
  qandaset id=@id role=(attr :role) xreflabel=(attr :reftext)
    - if title?
      title=title
    - items.each do |terms, dd|
      qandaentry
        question
          - [*terms].each do |dt|
            simpara=dt.text
        - unless dd.nil?
          answer
            - if dd.text?
              simpara=dd.text
            - if dd.blocks?
              =dd.content
- when 'glossary'
  - items.each do |terms, dd|
    glossentry
      - [*terms].each do |dt|
        glossterm=dt.text
      - unless dd.nil?
        glossdef
          - if dd.text?
            simpara=dd.text
          - if dd.blocks?
            =dd.content
- when 'horizontal'
  *{:tag=>title? ? 'table' : 'informaltable', :id=>@id, :role=>(attr :role), :xreflabel=>(attr :reftext),
      :tabstyle=>'horizontal', :frame=>'none', :colsep=>0, :rowsep=>0}
    - if title?
      title=title
    tgroup cols=2
      colspec colwidth="#{attr :labelwidth, 15}*" /
      colspec colwidth="#{attr :labelwidth, 85}*" /
      tbody valign='top'
        - items.each do |terms, dd|
          row
            entry
              - [*terms].each do |dt|
                simpara=dt.text
            - unless dd.nil?
              entry
                - if dd.text?
                  simpara=dd.text
                - if dd.blocks?
                  =dd.content
- else
  variablelist id=@id role=(attr :role) xreflabel=(attr :reftext)
    - if title?
      title=title
    - items.each do |terms, dd|
      varlistentry
        - [*terms].each do |dt|
          term=dt.text
        - unless dd.nil?
          listitem
            - if dd.text?
              simpara=dd.text
            - if dd.blocks?
              =dd.content

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
hyla-1.0.9 lib/resources/backends/slim/docbook45/block_dlist.xml.slim
hyla-1.0.9.pre.3 lib/resources/backends/slim/docbook45/block_dlist.xml.slim
hyla-1.0.9.pre.2 lib/resources/backends/slim/docbook45/block_dlist.xml.slim
hyla-1.0.9.pre.1 lib/resources/backends/slim/docbook45/block_dlist.xml.slim
hyla-1.0.8 lib/resources/backends/slim/docbook45/block_dlist.xml.slim
hyla-1.0.7 lib/resources/backends/slim/docbook45/block_dlist.xml.slim
hyla-1.0.7.pre.9 lib/resources/backends/slim/docbook45/block_dlist.xml.slim
hyla-1.0.7.pre.8 lib/resources/backends/slim/docbook45/block_dlist.xml.slim
hyla-1.0.7.pre.7 lib/resources/backends/slim/docbook45/block_dlist.xml.slim
hyla-1.0.7.pre.6 lib/resources/backends/slim/docbook45/block_dlist.xml.slim
hyla-1.0.7.pre.5 lib/resources/backends/slim/docbook45/block_dlist.xml.slim
hyla-1.0.7.pre.3 lib/resources/backends/slim/docbook45/block_dlist.xml.slim
hyla-1.0.7.pre.2 lib/resources/backends/slim/docbook45/block_dlist.xml.slim
hyla-1.0.7.pre.1 lib/resources/backends/slim/docbook45/block_dlist.xml.slim
hyla-1.0.6 lib/resources/backends/slim/docbook45/block_dlist.xml.slim
hyla-1.0.5 lib/resources/backends/slim/docbook45/block_dlist.xml.slim
hyla-1.0.5.pre.1 lib/resources/backends/slim/docbook45/block_dlist.xml.slim
hyla-1.0.4 lib/resources/backends/slim/docbook45/block_dlist.xml.slim
hyla-1.0.3 lib/resources/backends/slim/docbook45/block_dlist.xml.slim
hyla-1.0.2 lib/resources/backends/slim/docbook45/block_dlist.xml.slim