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
Using safe navigation operator (&.), Himl 0.1.1 produces unexpected </HIML_ERB_TAG>.
&.
</HIML_ERB_TAG>
without &.
require 'himl' template = '<%= @x.nil? ? nil : @x.to_f %>' @x = 1r/3 parser = Himl::Parser.new puts parser.call(template).to_erb
produces
<%= @x.nil? ? '' : @x.to_f %>
with &.
require 'himl' template = '<%= @x&.to_f %>' @x = 1r/3 parser = Himl::Parser.new puts parser.call(template).to_erb
</HIML_ERB_TAG> <%= @x&.to_f %>
The text was updated successfully, but these errors were encountered:
Simpler one.
parser.call('<% x & y %>').to_erb
</HIML_ERB_TAG> <% x & y %>
Or, syntactically incorrect but
parser.call('<% & %>').to_erb
</HIML_ERB_TAG> <% & %>
Sorry, something went wrong.
<% < %> works similarly.
<% < %>
No branches or pull requests
Using safe navigation operator (
&.
), Himl 0.1.1 produces unexpected</HIML_ERB_TAG>
.without
&.
produces
with
&.
produces
The text was updated successfully, but these errors were encountered: