Fork me on GitHub
#hoplon
<
2017-04-07
>
onetom04:04:58

@jab I'm usually just js/console.logging from the reload function and if that doesn't appear in the browser console, then I must have specified the wrong function name

onetom17:04:03

@jab btw for my reload tests i created this project: https://github.com/onetom/boot-reloadable-hoplon and it only works IF i add (enable-console-print!) to the beginning of my src/page/index.cljs, but your example doesn't work with that addition either. i suspect the issue might be the dash in the namespace name....

Josh18:04:35

@onetom Just saw this - thank you so much for taking a look! I'm tied up for an hour or so but then will try removing the dash from the namespace name and let you know what happens. In the meantime, I'm curious about ways this could be easier to debug, like if a warning or error could be emitted somewhere when the provided :on-jsload function couldn't be found

jjttjj19:04:11

@jumblerg do you have any examples of the new font stuff in hoplon/ui? I'm using a locally built version of the latest source. And just stealing the font defined in the markdown code in ui.cljs, but I can't seem to get the text to be bold.

(def sans-serif-strong (attrs/font :generic :sans-serif [:normal :700 :regular]))

(window
 (elem :sh (r 1 1)
       :ft sans-serif-strong
       "foo"))

jumblerg20:04:08

@jjttjj: try :tf. we decoupled the fonts from the text, which is now t.

jjttjj21:04:42

@jumblerg swapping out :ft for :tf there doesn't seem to work either

alandipert22:04:57

@onetom looks awesome. Reminds me of

chromalchemy23:04:40

@jjttjj I haven't digested the font path syntax yet, but this is working form me for loading a "bold" typeface

(def bold  (font :system ["Lato Bold"] :opentype "Lato-Bold.ttf"))
(elem :tf bold