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

Add something like VirtualDom.comment (document.createComment) #43

Open
guidoschmidt opened this issue Oct 27, 2016 · 1 comment
Open
Labels

Comments

@guidoschmidt
Copy link

I'm currently missing something similar to document.createComment from Javascript.

Would be great if one could generate HTML comments using something similar like this:

Elm:

Html.comment "comment begin",
Html.table [][],
Html.comment "comment end"

Produced HTML:

<!-- comment begin -->
<table></table>
<!-- comment end -->

I'm currently try to code an HTML e-mail template, and this would be very handy to support older e-mail clients 🙂 .

@process-bot
Copy link

Thanks for the issue! Make sure it satisfies this checklist. My human colleagues will appreciate it!

Here is what to expect next, and if anyone wants to comment, keep these things in mind.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants