Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
back2war opened this issue Oct 11, 2022 · 0 comments
Open

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

back2war opened this issue Oct 11, 2022 · 0 comments

Comments

@back2war
Copy link

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?

@back2war back2war changed the title options[:format] = :xhtml now working options[:format] = :xhtml not working Nov 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant