-
-
Notifications
You must be signed in to change notification settings - Fork 49
use a module instead of html_
namespacing in julia wrapper
#162
Comments
@shashi Just to be clear, you're suggesting that the This would make the syntax closer to what we have in Python, with our recommended syntax: To be more complete, I guess with your suggestion if a user wanted shortcut access to using DashHtmlComponents
import HTML: h1, div At which point all the other html components would also be available just inside the submodule, like You'll have to help me if I'm missing or mistaking pieces of Julia's import mechanisms... On the one hand I like your proposal, as it makes it easier to know what you've added to the scope (just one symbol, using DashHtmlComponents.HTML: h1, div My other concern is I don't really want to encourage users to import all of |
In fact, I checked again - it looks like this form of using is possible. I'm just not sure she looks pretty. And there remains the problem of name conflict. For example, a
|
it would be nice to have
So that we can use
HTML.h1
instead ofhtml_h1
and potentially users can import the components they want in the beginning so as to not have to qualify it later.
Can still be done with backwards compatibility by simply defining
or deprecating:
which will allow removing it in a later release after fair warning.
This is not a deal breaker, so feel free to not do it.
I'm very happy to see a Dashboard library for julia!
The text was updated successfully, but these errors were encountered: