Sha256: be7d9c6463ca78bddafbad280efe0335c407154b0cce724b48fb1d29a7a3fb6c

Contents?: true

Size: 560 Bytes

Versions: 59

Compression:

Stored size: 560 Bytes

Contents

- if @document.attr? :toc
  - toc_id = @id
  - toc_role = (attr 'role', (@document.attr 'toc-class', 'toc'))
  - toc_title_id = nil
  - toc_title = title? ? title : (@document.attr 'toc-title')
  - toc_levels = (attr? :levels) ? (attr :levels).to_i : (@document.attr :toclevels, 2).to_i
  - if !toc_id && (@document.embedded? || !(@document.attr? 'toc-placement'))
    - toc_id = 'toc'
    - toc_title_id = 'toctitle'
  div id=toc_id class=toc_role
    .title id=toc_title_id =toc_title
    =Asciidoctor::HTML5::DocumentTemplate.outline(@document, toc_levels)

Version data entries

59 entries across 26 versions & 2 rubygems

Version Path
asciidoctor-revealjs-1.0.4 templates/slim/block_toc.html.slim
asciidoctor-revealjs-1.0.3 templates/slim/block_toc.html.slim
asciidoctor-revealjs-1.0.2 templates/slim/block_toc.html.slim
asciidoctor-revealjs-1.0.1 templates/slim/block_toc.html.slim
asciidoctor-revealjs-1.0.0 templates/slim/block_toc.html.slim
hyla-1.0.9 lib/resources/backends/slim/html5/block_toc.html.slim
hyla-1.0.9 lib/resources/backends/slim/revealjs-redhat/block_toc.html.slim
hyla-1.0.9 lib/resources/backends/slim/revealjs/block_toc.html.slim
hyla-1.0.9.pre.3 lib/resources/backends/slim/revealjs-redhat/block_toc.html.slim
hyla-1.0.9.pre.3 lib/resources/backends/slim/revealjs/block_toc.html.slim
hyla-1.0.9.pre.3 lib/resources/backends/slim/html5/block_toc.html.slim
hyla-1.0.9.pre.2 lib/resources/backends/slim/html5/block_toc.html.slim
hyla-1.0.9.pre.2 lib/resources/backends/slim/revealjs/block_toc.html.slim
hyla-1.0.9.pre.2 lib/resources/backends/slim/revealjs-redhat/block_toc.html.slim
hyla-1.0.9.pre.1 lib/resources/backends/slim/revealjs/block_toc.html.slim
hyla-1.0.9.pre.1 lib/resources/backends/slim/html5/block_toc.html.slim
hyla-1.0.9.pre.1 lib/resources/backends/slim/revealjs-redhat/block_toc.html.slim
hyla-1.0.8 lib/resources/backends/slim/revealjs/block_toc.html.slim
hyla-1.0.8 lib/resources/backends/slim/html5/block_toc.html.slim
hyla-1.0.8 lib/resources/backends/slim/revealjs-redhat/block_toc.html.slim