Skip to content

options[:format] = :xhtml not working #184

Open
@back2war

Description

@back2war

Hello, I'm trying to get the same behavior for :xhtml option as in Haml 5, but it doesn't work.

config/initializers/haml.rb
Haml::Template.options[:format] = :xhtml

app/views/test/index.html.haml
%p{ selected: true, data: { boolean_true: true, boolean: false } }

Result:

https://github.com/back2war/haml6-test

Could you please advise how to get XHTML like attributes?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions