We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Given the following unusual, but seemingly valid, Erb code:
<% foo = 3 %> <% if foo.even? foo = foo * 10 end %> <%= foo %>
(which produces "20" if foo is 2)
the following invalid HAML is generated
- foo = 3 - if foo.even? - foo = foo * 10 - end = foo
Which generates the following error message:
You don't need to use "- end" in Haml. Un-indent to close a block: - if foo? %strong Foo! - else Not foo.
The html2haml version was as recent as possible:
GIT remote: git://github.com/haml/html2haml.git revision: 19cb7fff6fe69a9f3576773a9512322e095efe12 specs: html2haml (2.2.0) erubis (~> 2.7.0) haml (>= 4.0, < 6) nokogiri (>= 1.6.0) ruby_parser (~> 3.5)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Given the following unusual, but seemingly valid, Erb code:
(which produces "20" if foo is 2)
the following invalid HAML is generated
Which generates the following error message:
The html2haml version was as recent as possible:
The text was updated successfully, but these errors were encountered: