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