Clojurians
#hoplon
<
2016-02-12
>

This page is not created by, affiliated with, or supported by Slack Technologies, Inc.

jjttjj21:02:49

been away from cljs for awhile and I'm blanking on how to use external libraries from hoplon. I'm trying to use amcharts. Currently I have script tags pulling in the js on the page, then i'm trying to call a constructor in with-init! but getting a No such namespace: AmCharts error.

jjttjj21:02:08

am I required to have the js source files in a boot src directory?

laforge4922:02:59

Methinks they need to be on your resource path, as that will put them in your jar file.

dm322:02:35

if you have included the JS on the page, you need to use js/AmCharts @jjttjj

dm322:02:53

then if you want advanced compilation, you need to create externs

raywillig22:02:43

@jjttjj: you can use script tags to include the js but I think the current best practice is to have it packaged ala cljsjs/packages. I don't know if a package already exists for amcharts but there are many packaging examples there

laforge4923:02:43

Review requested. I'm simplifying the api for durable-cells, which builds on indexedDB. Here's the writeup: https://github.com/aatree/durable-cells/issues/1 Thanks!

laforge4923:02:55

--the API in the hoplon duracell demo that I wrote is really bad!