Fork me on GitHub
#hoplon
<
2016-05-25
>
raywillig14:05:36

@micha is the main thing in alpha15 the attribute namespaces stuff?

micha14:05:11

released new castra version also btw

eric.shao17:05:56

Is there any parallax scrolling effects example by using Hoplon or Hoplon/ui ?

flyboarder18:05:23

👏 validated-form demo is awesome!

alandipert18:05:28

i missed it, where's that at?

flyboarder18:05:26

I dont think it’s new but i really like the validation pattern, i think it will be easier than the jquery plugins

leontalbot23:05:45

I get a "null" just after <body> and before the inner body elements

leontalbot23:05:56

can't explain it!!!

leontalbot23:05:51

Anyone has ideas?

leontalbot23:05:59

I'm taking everything!!!

flyboarder23:05:26

wrap in let and print?

leontalbot23:05:32

a null appears also just after <head>

flyboarder23:05:51

(let [] (prn (my-broken-thing)) (my-broken-thing))

flyboarder23:05:12

let only returns the last form so you can easily hide debug stuff in it

leontalbot23:05:39

#<Element: HEAD>

leontalbot23:05:52

(let []
   (prn (views/get-head ...))
   (views/get-head ...))

flyboarder23:05:41

ok so you are successfully returning an HTML element, is that what is giving you null?

flyboarder23:05:59

what is before and after the null in hl code?

flyboarder23:05:52

usually when i see things like that in my code, im dropping something in an element body which is not also an element

leontalbot23:05:11

<head> null <meta charset=...

flyboarder23:05:14

can you provide a gist of your get-head?

flyboarder23:05:46

it’s inside this i was looking for the let

flyboarder23:05:24

meta doesnt exists should be html-meta

flyboarder23:05:42

name conflict with cljs.core

leontalbot23:05:51

When I deploy on my server, (https) i get the null AND the css doesn't load. I also get CSS was ignored due to mime type mismatch. With IE...

flyboarder23:05:32

that could be part of it

leontalbot23:05:55

... (:refer-clojure :exclude [meta])
(def meta html-meta)

flyboarder23:05:42

hmm this a strange one, just to be sure, what version of hl are you on?

flyboarder23:05:26

is it giving you that on 14?

leontalbot23:05:35

tried alpha13 too

flyboarder23:05:42

i dont see anything which should be null-ing

leontalbot23:05:56

yeah, me neither

leontalbot23:05:17

maybe it is in clj

flyboarder23:05:22

does it do that with an empty head and body?

flyboarder23:05:14

i would test a different index page without your code and see what HTML is outputted

flyboarder23:05:26

like maybe just (html (head) (body “I am clearly not an app."))

leontalbot23:05:34

Good idea! With empty (head) I get <head>null</head>

flyboarder23:05:51

it’s gotta be somewhere on the handler i’d say

flyboarder23:05:06

but im no backend expert

flyboarder23:05:59

hope I helped 😛

leontalbot23:05:02

Thanks @flyboarder . Hopefully I will find it on server-side

flyboarder23:05:28

ill be around for a while if you need additional digging, happy hunting!