Sha256: 1b42bbb5fce2e4d91bb1b7991c69a4b8929ff9d0264c247910ac7d1393fe3d79

Contents?: true

Size: 1.38 KB

Versions: 19

Compression:

Stored size: 1.38 KB

Contents

#one
  .two{ :title => @two }
    #three.four.five
      .six#seven(title=@three)
    #eight
    #nine
  - for product in @products
    %div#product.article.entry{:id => product.id, :class => product.color }

%div.x{'class': "#{if true then 'y' else ''}"}

- for title in ['Mr', 'Mrs', 'Ms', 'Miss']
  %option{value: title, selected: @title == title}= title

%a{href: [1,2].join()} OMG
%a{ href: "/people?name=#{@name}&page=4" }

%ul.avatars{:class => ("all-shown" if true) }
%ul.avatars{:class => ("all-shown" unless true) }

%ul.avatars{:class => 'all-shown' if false }
%ul.avatars{:class => 'all-shown' unless false }

- otherFunction = (number) -> number + 'number'
- someFunction = (text, options) -> text + options.someOption

%input{ value: someFunction('literal', someOption: otherFunction(1)) }
%input{ value: someFunction('literal', { someOption: otherFunction(1) }) }
%input{ value: someFunction('literal', { someOption: otherFunction(1) }) }
%input{ value: someFunction('literal', 'someOption': otherFunction(1)) }
%input{ value: someFunction('literal', { 'someOption': otherFunction(1) }) }
%input{ value: (someFunction('literal', someOption: otherFunction(1))) }
%input{ value: (someFunction('literal', { someOption: otherFunction(1) })) }
%input{ value: (someFunction('literal', 'someOption': otherFunction(1))) }
%input{ value: (someFunction('literal', { 'someOption': otherFunction(1) })) }

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
ela-4.1.6 node_modules/haml-coffee/spec/suites/templates/coffee/attributes.haml
ela-4.1.5 node_modules/haml-coffee/spec/suites/templates/coffee/attributes.haml
ela-4.1.4 node_modules/haml-coffee/spec/suites/templates/coffee/attributes.haml
ela-4.1.3 node_modules/haml-coffee/spec/suites/templates/coffee/attributes.haml
ela-4.1.2 node_modules/haml-coffee/spec/suites/templates/coffee/attributes.haml
ela-4.1.1 node_modules/haml-coffee/spec/suites/templates/coffee/attributes.haml
ela-4.1.0 node_modules/haml-coffee/spec/suites/templates/coffee/attributes.haml
ela-4.0.0 node_modules/haml-coffee/spec/suites/templates/coffee/attributes.haml
ela-3.4.3 node_modules/haml-coffee/spec/suites/templates/coffee/attributes.haml
ela-3.4.2 node_modules/haml-coffee/spec/suites/templates/coffee/attributes.haml
ela-3.4.0 node_modules/haml-coffee/spec/suites/templates/coffee/attributes.haml
ela-3.3.1 node_modules/haml-coffee/spec/suites/templates/coffee/attributes.haml
ela-3.3.0 node_modules/haml-coffee/spec/suites/templates/coffee/attributes.haml
ela-3.2.0 node_modules/haml-coffee/spec/suites/templates/coffee/attributes.haml
ela-3.1.1 node_modules/haml-coffee/spec/suites/templates/coffee/attributes.haml
ela-3.1.0 node_modules/haml-coffee/spec/suites/templates/coffee/attributes.haml
ela-3.0.0 node_modules/haml-coffee/spec/suites/templates/coffee/attributes.haml
ela-2.0.0 node_modules/haml-coffee/spec/suites/templates/coffee/attributes.haml
ela-1.1.0 node_modules/haml-coffee/spec/suites/templates/coffee/attributes.haml