prevent duplication of esm code #26
Replies: 2 comments
-
One probably very bad idea/hack:
prependContent for standalone
|
Beta Was this translation helpful? Give feedback.
-
In R, I would prefer to keep Regarding duplication of the |
Beta Was this translation helpful? Give feedback.
-
With the simple example provided, the
esm
is very concise, but I envision with more complicatedanyhtmlwidgets
this block could become long and unwieldy. Even with the simple example, let's say we want numerous button widgets. If I am understand correctly, this means each of these widgets will have its ownesm
meaning that the code is duplicated with each instance/usage. Wondering what mechanisms we might employ to avoid this duplication especially in scenarios where theesm
is long and complicated. As a comparison,htmlwidgets
registers eachhtmlwidget
inwindow.HTMLWidgets
to avoid the duplication.Beta Was this translation helpful? Give feedback.
All reactions