Sha256: edc306b7dedfa5a4300ec07e1650af82c0c88b105fe8b91133911e640550cf8f

Contents?: true

Size: 679 Bytes

Versions: 5

Compression:

Stored size: 679 Bytes

Contents

doctype html
html
  head
    title Slim Examples
    meta name="keywords" content="template language"
    meta name="author" content=author
    javascript:
      alert('Slim supports embedded javascript!')

  body
    h1 Markup examples

    #content
      p This example shows you how a basic Slim file looks like.

      == yield

      - unless items.empty?
        table
          - for item in items do
            tr
              td.name = item.name
              td.price = item.price
      - else
        p
          | No items found. Please add some inventory.
            Thank you!

    div id="footer"
      = render 'footer'
      | Copyright (C) #{year} #{author}

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
tdiary-4.2.1 vendor/bundle/ruby/2.2.0/gems/pygments.rb-0.6.3/vendor/pygments-main/tests/examplefiles/example.slim
pygments.rb-0.6.3 vendor/pygments-main/tests/examplefiles/example.slim
pygments.rb-0.6.2 vendor/pygments-main/tests/examplefiles/example.slim
pygments.rb-0.6.1 vendor/pygments-main/tests/examplefiles/example.slim
pygments.rb-0.6.0 vendor/pygments-main/tests/examplefiles/example.slim