Sha256: a71b788f1c2a5556c7ea6d1696d9b17ee1d27a785f56b792dbd24f1dcffbc82d

Contents?: true

Size: 1.07 KB

Versions: 9

Compression:

Stored size: 1.07 KB

Contents

doctype html
html
  head
    title Slim Test
    meta name="keywords" content="slim, syntax"

    javascript:
      $(function() {
        alert('Hello World');
      });

    haml:
      #someid.someclass{:this => 'test'} Content in haml

    erb:
      <%= some_method(@request) %>

  body
    / comment block
      with multiple lines
      This is another line
    h1 = @page_title
    p#notice.message
      | Welcome to the the syntax test.
        This file is to exercise the various markup.
        This is another line
    - unless @users.empty?
      table
        - for user in users do
          tr
            td.user id=some_ruby('ere', @rme) data-test="some text #{with @ruby}" = @post.name 
    - else
      p There are no users.

    / Single comment line
    #content Hello #{@user.name}! Welcome to the test page!
             Try out Slim!

    = function_with_many_parameters(:a, @variable, :option => 1)

    p.text
      ' Another text block
        with multiple lines

    = link_to('Test', @site)

    .text#footer
      ' Footer text block
        with multiple lines

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
slim-1.1.1 extra/test.slim
slim-1.1.0 extra/test.slim
slim-1.0.4 extra/test.slim
slim-1.0.3 extra/test.slim
slim-1.0.2 extra/test.slim
slim-1.0.1 extra/test.slim
slim-1.0.0 extra/test.slim
slim-0.9.4 extra/test.slim
slim-0.9.3 extra/test.slim