vhtml
vhtml copied to clipboard
How to render html comment
trafficstars
Is it possible to render HTML comments, I am using this to render server side templates, and it would be useful to print out html comments so it helps with debugging and getting meta information
There isn't a Comment syntax for JSX. You can preprocess the Strings array before it reaches htm, and then undo that preprocessing using the tag function you pass. Here's an example that enables only certain comments (IE conditional comments):
https://jsfiddle.net/developit/jwb4nkao/