Sha256: a830268915becf1723b1595fd9c8e13ea67a902af31a370d1d4daf22c31de0f1

Contents?: true

Size: 772 Bytes

Versions: 21

Compression:

Stored size: 772 Bytes

Contents

- if @style == '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
    %div{:id=>@id, :class=>['quoteblock', 'abstract', role]}
      - if title?
        .title=title
      %blockquote=content.chomp
- elsif @style == 'partintro' && (@document.doctype != 'book' || @parent.context != :section || @level != 0)
  - puts 'asciidoctor: ERROR: partintro block can only be used when doctype is book and it\'s a child of a book part. Excluding block content.' 
- else
  %div{:id=>@id, :class=>['openblock', (@style != 'open' ? @style : nil), role]}
    - if title?
      .title=title
    .content=content.chomp

Version data entries

21 entries across 21 versions & 1 rubygems

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