epoxy icon indicating copy to clipboard operation
epoxy copied to clipboard

`epoxyHTML()` should allow substitution in attributes, too

Open gadenbuie opened this issue 2 years ago • 1 comments

Currently substitution happens within an element, but it would be great to be able to substitute within an attribute.

expoxyHTML(
  a(href = "{{ url }}", "go to the link")
)

gadenbuie avatar Apr 13 '22 13:04 gadenbuie

This isn't possible, but I could add a whiskerHTML() function where everything inside it needs to be written as raw HTML (in character string) and then everything in the output is replaced when updated values are sent.

whiskerHTML(
  .id = "link",
  '<a href="{{ url }}">go to the link</a>'
)

gadenbuie avatar Apr 16 '22 00:04 gadenbuie