Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

register_renderable is not ideal #48

Closed
shashi opened this issue Feb 23, 2018 · 1 comment
Closed

register_renderable is not ideal #48

shashi opened this issue Feb 23, 2018 · 1 comment

Comments

@shashi
Copy link
Member

shashi commented Feb 23, 2018

I think the right way to go about this is to provide a trait:

WebIO.renderable(x::T) = true # and WebIO.renderable(x::Any) = false

Then the backends are to be hooked up to always use WebIO.render when this trait is true.

Best way to do this is have backends depend on WebIO.

@twavv
Copy link
Member

twavv commented Jul 30, 2019

This is better now™. We have a @register_renderable macro and should only get better with the way that IJulia and things are moving.

@twavv twavv closed this as completed Jul 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants