Sha256: 3eec1d0f70836c09a9b188e6c925fab12ff452b5f711dde5d0b6c853f40455d1

Contents?: true

Size: 553 Bytes

Versions: 1

Compression:

Stored size: 553 Bytes

Contents

- _has_title = title?
- content_for :pre
  - if style == 'source' && (_lang = local_attr :language)
    / NOTE class attribute required for highlight.js and prettify
    / QUESTION should we add a "highlight" class to pre?
    pre.source id=(id unless _has_title) : code data-lang=_lang class="language-#{_lang} prettyprint" =content
  - else
    / QUESTION should we add a class to pre?
    pre id=(id unless _has_title) : code =content
- if _has_title
  figure.listing id=id
    figcaption=title
    - yield_content :pre
- else
  - yield_content :pre

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
asciidoctor-bespoke-1.0.0.alpha.1 templates/slim/listing.html.slim