Hi,
In Python I use the statement:
import dash_html_components as html
Please add a function/method html.Comment so that
html.Comment("text’) generates <!-- text -->
Hi,
In Python I use the statement:
import dash_html_components as html
Please add a function/method html.Comment so that
html.Comment("text’) generates <!-- text -->
What would be the use case/need for this feature?
Various use cases:
See For example: "Comments are also great for debugging HTML, because
you can comment out HTML lines of code, one at a time, to search for
errors:"
My primary use case is sending program version information to the
page that is not part of the UX (the user does not see it)
but I can view it to confirm the program version.
I’ve used other HTML macro packages that have this feature, for
example, Oracle® Application Server PL/SQL Web Toolkit
htp.comment
I notice that my original posting is missing what the function should generate … probably eaten up. So I’ll try again:
html.Comment('text’) generates <!-- text -->
You might be able to do what you want with dash-dangerously-set-inner-html?