Fork me on GitHub
#hoplon
<
2017-05-25
>
mudphone04:05:58

Thanks @flyboarder , what do you mean by “include hoplon normally?”

flyboarder05:05:11

@mudphone like as a regular cljs namespace, require hoplon.core and hoplon.jquery

mudphone06:05:57

@flyboarder hmmm, I was able to recreate the same problem after chaning src/index.cljs.hl to src/app/main.cljs and including hoplon.core… I’ll update the repo…

mudphone06:05:32

So, I didn’t see those “errors in the base cljs file” that you mentioned.

flyboarder06:05:39

That's strange, I'll take a look at the updated repo in the morning

mudphone07:05:41

Yes, I’m not sure what to make of it. Thanks for taking a look.

jouerose08:05:15

what is fundamentally the difference between DEFN and DEFELEM when creating a custom element ?

mudphone08:05:04

defelem is a macro with the convenience of taking a map of attributes and child nodes: https://github.com/hoplon/hoplon/wiki/Composing-HTML-%28defelem%29

jouerose08:05:38

@mudphone it looks like when you do not use a (div as the first tag and wrapper it does not work properly. is this right ?

jouerose08:05:12

@mudphone i just had a try and this is how it behaved.

jouerose08:05:14

actually i am discovering, on that page, it shows a vector can also be returned

mudphone08:05:24

yeah, I think one caveat is that if you’re using a template macro you may need to nest it in an element: https://github.com/hoplon/hoplon/wiki/Dynamic-DOM-manipulation-aka-Template-Macros

jouerose11:05:49

hi, in hoplon what piece of code would result in this vector of of 5 (br): [ (br) (br) (br) (br) (br) ]

jouerose11:05:01

@thedavidmeister yes working , thank you

jouerose11:05:46

On the wiki page on editor, intellij/cursive is not mentioned. I did not find in the repositories some boot plugin. has anyone managed to get boot based hoplon working fine in intellij ?

cpmcdaniel11:05:02

IDEs like declarative build systems a lot better

cpmcdaniel11:05:33

and depends on what you mean by “working”

cpmcdaniel11:05:24

I have found that getting an interactive ClojureScript REPL working in any environment with boot/hoplon to be a lot of effort

mudphone21:05:49

cpmcdaniel: Oh man, I hear you. I just got CIDER and boot-cljs-repl working with Hoplon/Boot last night. I feel like I have to do this dance every time I start a new project.

cpmcdaniel11:05:45

but that may simply be because documentation is scattered and sometimes out of date

jouerose15:05:55

@cpmcdaniel will have a quick try at neovim , see what happens

cpmcdaniel15:05:11

part of the problem is that there a SO many editors/IDEs, and cljs is still very young

cpmcdaniel15:05:19

hoplon and boot are even younger still

cpmcdaniel15:05:44

language and libraries >>> tools