Skip to content

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

@guidoschmidt

Description

@guidoschmidt

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 🙂 .

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions