Fork me on GitHub
#luminus
<
2015-09-16
>
Pablo Fernandez09:09:51

@yogthos: can you comment on the issue, I think you voice would carry some weight in endorsing this as a good idea.

yogthos13:09:30

yeah sure thing

eggsyntax18:09:41

What's the appropriate way, in Luminus, to make an external JS library available to a page? I'm new to Luminus (and fairly new to React, Reagent & Hiccup) so I may be missing something obvious here...

eggsyntax18:09:02

(I've done it successfully in a Reagent project by putting a <script> tag in the HTML)

eggsyntax18:09:40

Ah. Just found Hiccup's include-js function; I'm guessing that's it.

vfe18:09:51

Can use include-js, can use the google loader directly, I personally don't think it's unidiomatic to simply use the script tags in the html as well.

vfe18:09:07

Depending on what you're trying to accomplish.

eggsyntax18:09:29

OK, thanks! How would I use the google loader directly?

vfe18:09:48

Ignore the backtick, I messed up formatting, lol

vfe18:09:13

Example of loading external stripe dep

vfe18:09:24

Depending on the dependency itself you may also find it @ http://cljsjs.github.io/

eggsyntax18:09:46

Great. Thanks, that’s really helpful simple_smile