-
Notifications
You must be signed in to change notification settings - Fork 175
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
hiccup/html behaves differently with literal or let-bound value #158
Comments
It should probably either output "{}" or throw an error in both cases. Hiccup uses precompilation steps, and it looks like this is producing some strange output when it's fed invalid input. |
I think I'm having the same issue while trying to add a class to the html tag:
But now if I ignore opts and use the literal inside the
What could be the issue? |
(html {:mode :html} (p/doctype :html5) [:html opts content]) |
Please consider the following snippet:
I am not sure what should be the output here (possibly
""
, since{}
doesn't look like valid html to me), but I would expect both snippets to render the same output.Adding an explicit
{}
first parameter makes them render both"{}"
The text was updated successfully, but these errors were encountered: