Sha256: 835deba67867da77617a3d4ea2ff3b2f634aa0b072e63001cd9d349e5b023db0
Contents?: true
Size: 1.37 KB
Versions: 1
Compression:
Stored size: 1.37 KB
Contents
# [old\_attributes\_spec.rb:43](https://github.com/k0kubun/hamlit/blob/master/spec/hamlit/engine/old_attributes_spec.rb#L43) ## Input ```haml %span{ class: '}}}', id: '{}}' } }{ ``` ## Output ### Haml ```html Haml::SyntaxError: (haml):1: syntax error, unexpected tSTRING_DEND, expecting ')' ...l, class: ')}>}}', id: '{}}' } }{</span>\n";;_erbout ... ^ (haml):1: unterminated regexp meets end of file ``` ### Faml ```html Faml::Compiler::UnparsableRubyCode: Unparsable Ruby code is given to attributes: class: ' ``` ### Hamlit ```html <span class='}}}' id='{}}'>}{</span> ``` # [old\_attributes\_spec.rb:201](https://github.com/k0kubun/hamlit/blob/master/spec/hamlit/engine/old_attributes_spec.rb#L201) ## Input ```haml / wontfix: Non-boolean attributes are not escaped for optimization. - val = false %a{ href: val } - val = nil %a{ href: val } / Boolean attributes are escaped correctly. - val = false %a{ disabled: val } - val = nil %a{ disabled: val } ``` ## Output ### Haml, Faml ```html <!-- wontfix: Non-boolean attributes are not escaped for optimization. --> <a></a> <a></a> <!-- Boolean attributes are escaped correctly. --> <a></a> <a></a> ``` ### Hamlit ```html <!-- wontfix: Non-boolean attributes are not escaped for optimization. --> <a href='false'></a> <a href=''></a> <!-- Boolean attributes are escaped correctly. --> <a></a> <a></a> ```
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
hamlit-1.5.5 | doc/engine/old_attributes.md |