Sha256: 608e417c225d7c24545f0e5225237a001d933d7b64457a3934187746b598b2ca

Contents?: true

Size: 841 Bytes

Versions: 21

Compression:

Stored size: 841 Bytes

Contents

- case attr 'style'
- when 'abstract'
  - if @parent == @document && @document.doctype == 'book'
    - puts 'asciidoctor: WARNING: abstract block cannot be used in a document without a title when doctype is book. Excluding block content.'
  - else
    %abstract
      - if title?
        %title=title
      - if blocks?
        =content
      - else
        %simpara=content
- when 'partintro'
  - unless @document.doctype == 'book' && @parent.context == :section && @level == 0
    - puts 'asciidoctor: ERROR: partintro block can only be used when doctype is book and its a child of a part section. Excluding block content.'
  - else
    %partintro{:id=>@id, :role=>(attr :role), :xreflabel=>(attr :reftext)}
      - if title?
        %title=title
      - if blocks?
        =content
      - else
        %simpara=content
- else
  =content

Version data entries

21 entries across 21 versions & 1 rubygems

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