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

Alias resolution for :render-fns #276

Merged
merged 2 commits into from Nov 11, 2022
Merged

Alias resolution for :render-fns #276

merged 2 commits into from Nov 11, 2022

Conversation

mk
Copy link
Member

@mk mk commented Nov 11, 2022

Until now, we've defined a number of global aliases in Clerk's SCI Environment that evaluates render functions in the browser. These
had no connection to the namespace they were defined in and naturally folks where confused what things like v/html meant.

Clerk now uses the ns-aliases defined in the JVM to resolve namespaced symbols, making this conection clear and even enabling
jump to definition. In Clojure 1.11 this works nicely with :as-alias support allowing us to define aliases for namespaces that are ClojureScript only.

Using this, we can define fairly complex viewers like plotly completely in userspace while keeping things understandable.

Screenshot 2022-11-11 at 13 23 08

@mk mk changed the title Implement alias resolution for :render-fns Alias resolution for :render-fns Nov 11, 2022
@mk mk merged commit edd0c2f into main Nov 11, 2022
@mk mk deleted the viewer-aliases branch November 11, 2022 12:53
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

Successfully merging this pull request may close these issues.

None yet

1 participant