Sha256: 9d464967399e8c36a4e98a1644eeb8c8fd6d9b943dae22fd6e62b973abb5945e

Contents?: true

Size: 1.07 KB

Versions: 54

Compression:

Stored size: 1.07 KB

Contents

.listingblock id=@id class=role
  - if title?
    .title=captioned_title
  .content
    - nowrap = !(@document.attr? :prewrap) || (option? 'nowrap')
    - if @style == 'source'
      - language = attr :language
      - code_class = language ? [language, "language-#{language}"] : nil
      - pre_class = ['highlight']
      - pre_lang = nil
      - case attr 'source-highlighter'
      - when 'coderay'
        - pre_class = ['CodeRay']
      - when 'pygments'
        - pre_class = ['pygments','highlight']
      - when 'prettify'
        - pre_class = ['prettyprint']
        - pre_class << 'linenums' if attr? :linenums
        - pre_class << language if language
        - pre_class << "language-#{language}" if language
        - code_class = nil
      - when 'html-pipeline'
        - pre_lang = language
        - pre_class = code_class = nil
        - nowrap = false
      /- when 'highlightjs', 'highlight.js'
      - pre_class << 'nowrap' if nowrap
      pre class=pre_class lang=pre_lang
        code class=code_class =content
    - else
      pre class=(nowrap ? 'nowrap' : nil) =content

Version data entries

54 entries across 21 versions & 1 rubygems

Version Path
hyla-1.0.9 lib/resources/backends/slim/revealjs-redhat/block_listing.html.slim
hyla-1.0.9 lib/resources/backends/slim/html5/block_listing.html.slim
hyla-1.0.9 lib/resources/backends/slim/revealjs/block_listing.html.slim
hyla-1.0.9.pre.3 lib/resources/backends/slim/html5/block_listing.html.slim
hyla-1.0.9.pre.3 lib/resources/backends/slim/revealjs/block_listing.html.slim
hyla-1.0.9.pre.3 lib/resources/backends/slim/revealjs-redhat/block_listing.html.slim
hyla-1.0.9.pre.2 lib/resources/backends/slim/html5/block_listing.html.slim
hyla-1.0.9.pre.2 lib/resources/backends/slim/revealjs/block_listing.html.slim
hyla-1.0.9.pre.2 lib/resources/backends/slim/revealjs-redhat/block_listing.html.slim
hyla-1.0.9.pre.1 lib/resources/backends/slim/revealjs/block_listing.html.slim
hyla-1.0.9.pre.1 lib/resources/backends/slim/html5/block_listing.html.slim
hyla-1.0.9.pre.1 lib/resources/backends/slim/revealjs-redhat/block_listing.html.slim
hyla-1.0.8 lib/resources/backends/slim/revealjs/block_listing.html.slim
hyla-1.0.8 lib/resources/backends/slim/html5/block_listing.html.slim
hyla-1.0.8 lib/resources/backends/slim/revealjs-redhat/block_listing.html.slim
hyla-1.0.7 lib/resources/backends/slim/html5/block_listing.html.slim
hyla-1.0.7 lib/resources/backends/slim/revealjs/block_listing.html.slim
hyla-1.0.7 lib/resources/backends/slim/revealjs-redhat/block_listing.html.slim
hyla-1.0.7.pre.9 lib/resources/backends/slim/revealjs-redhat/block_listing.html.slim
hyla-1.0.7.pre.9 lib/resources/backends/slim/revealjs/block_listing.html.slim