Sha256: d3908c3755284e71c14a2e37e89122ea147624632d80acfa882741c6ef5b3fd3

Contents?: true

Size: 1.21 KB

Versions: 19

Compression:

Stored size: 1.21 KB

Contents

- available = true
%a{ test: if available then 'yep' else 'nope', another: 'test' }
%a{ test: if available then "yep" else "nope", another: "test" }

- available = false
%a{ test: if available then 'yep' else 'nope', another: 'test' }
%a{ test: if available then "yep" else "nope", another: "test" }

#test{ :text => ['hello', 'all', 'done'].join(' -- '), :another => 'test' }
#test{ :text => ['hello', 'all', 'done'].join(" -- "), :another => 'test' }
#test{ :text => ['hello', "all", 'done'].join(" -- "), :another => 'test' }
#test{ :text => ["hello", "all", "done"].join(" -- "), :another => "test" }

- domain = { get: -> 'test' }
%a{ href: "http://#{ domain.get('fqdn') }" }= domain.get('fqdn')
%a{ href: "http://#{ domain.get("fqdn") }" }= domain.get("fqdn")

- myFunction = (num, options) -> num * options.length
%input{ type: 'text', name: 'padded_number', value: myFunction(@number, length: 3) }
%input{ type: 'text', name: 'padded_number', value: myFunction(@number, { length: 3 }) }
%input{ type: 'text', name: 'padded_number', value: myFunction(@number, 'length': 3 ) }
%input{ type: 'text', name: 'padded_number', value: myFunction(@number, { 'length': 3 } ) }

- func = (p) -> "-#{p}-" 
%div(foo="#{func('foo')}" bar="bar")

Version data entries

19 entries across 19 versions & 1 rubygems

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