Clojurians
#hoplon
<
2016-01-04
>

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

laforge4918:01:35

@micha I tried breaking a .hl file into two, but it did not work. I am wondering if this is doable? Also, I am wondering what is going on. I know there's a lot of action behind the scenes to make all this so nicely reactive. I figured I could just define a function which contained a (div ...) and then call it within the body of the main page. I just ended up with a blank page. simple_smile

micha18:01:16

you can do that

micha18:01:36

there isn't really a lot of action behind the scenes

laforge4918:01:53

I just deleted all my test code. 😞

micha18:01:05

you probably had an error in your namespace declaration

laforge4918:01:08

So it is hard to ask you what I did wrong. 😄

micha18:01:14

or something that prevented the namespace from compiling

laforge4918:01:30

I'll recreate. Later!

micha18:01:41

when you get a blank page, the js console is your friend

micha18:01:56

you can see the js error there, and get a stack trace to see which code it's coming from

laforge4918:01:03

yes I did. everything on the console looked good--no errors

laforge4918:01:30

I can recreate and push easily enough.:D

laforge4918:01:32

Finally gave up and started a course of antibiotics for this head cold. Feel better already! Tired of not doing anything.

laforge4918:01:03

@micha found it. I had put (comment ... ) around the old div in the main .hl file.

laforge4918:01:08

@micha Gosh, being able to put page fragments in libraries is super!!!

micha18:01:56

i'm having the weirdest issue with the sql server jdbc driver

micha19:01:33

@laforge49: comment is a Clojure/ClojureScript special form

micha19:01:54

actually maybe it's a macro

laforge4919:01:09

It returns nil

micha19:01:11

so it's not "causing problems"

micha19:01:16

it's doing its job, no?

laforge4919:01:29

yes, but then nothing works.

laforge4919:01:38

which in my mind is causing a problem

micha19:01:51

oh, because of the nil?

laforge4919:01:06

I'm the newbie

micha19:01:38

i'll have a look, i think nils should probably be ignored

laforge4919:01:28

I'm just a squeaky wheal saying hoplon, hoplon, hoplon all day long. 😄

laforge4920:01:20

@micha Here's a dumb bunny question: Do I need both a .cljs and a .cljs.hl file when using castra??? Or can I use mkremote in a def in a .cljs.hl file?

micha20:01:53

you can, it's just functions and macros, nothing special

micha20:01:30

the .hl file is just to smooth over certain things to eliminate boilerplate with deploying cljs applications