djblue / portal

A clojure tool to navigate through your data.

Home Page:https://djblue.github.io/portal/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Question regarding js dependency for custom viewer

maacl opened this issue · comments

What would be the best way to make a js dependency (in this case https://timeline.knightlab.com/) available to use in a custom viewer? I have it available in my project, but unsure how to load it into the portal UI.

Hi @maacl, currently there isn't an easy way to bring in js dependencies outside of manually injecting a script tag.

@maacl I think 70ce1a2 might end up solving your problem in the next release. It will allow cljs code loaded via sci to pull js from node_modules.

That sounds great.

This issue should be resolved as of 0.37.0. Please let me know if you run into any issues.

Thanks, I will give it a try.