Fork me on GitHub
#hoplon
<
2017-07-21
>
thedavidmeister01:07:36

@avabinary and {:name "Paula" :id 1} is an example of a response?

cycle33706:07:56

actually [{...} {....} {...} ] since there are more users

ejemba07:07:32

hello o/, what is the best way with hoplon (cljs) if I want integrate a particular html/css theme ? what are the best practices ?

ejemba07:07:03

transform every pages in cljs or embed some parts ?

thedavidmeister08:07:01

@avabinary shouldn't the initial state for :users-to-edit in the app state be [{}] then rather than {}?

thedavidmeister08:07:57

@ejemba up to you, hoplon functions just return detached dom elements so you can do either

thedavidmeister08:07:11

would really depend on what you are trying to integrate and what you are trying to achieve

ejemba09:07:41

@thedavidmeister I have an admin html theme I want to buy on themeforest and I know they can be huge

thedavidmeister10:07:47

@ejemba have you used hoplon much before?

thedavidmeister11:07:02

if it's just HTML/CSS you're buying you can go either way

thedavidmeister11:07:18

the default is to just build the whole thing in hoplon

thedavidmeister11:07:33

but if you have to work with some existing JS then it really depends on how that JS works

ejemba11:07:14

@thedavidmeister nope, it is my first POCs

ejemba11:07:29

I'am pocing right now

thedavidmeister11:07:42

maybe worth playing around with it a bit before trying an integration

thedavidmeister11:07:45

just to get a feel for it

ejemba11:07:56

yes, agree

ejemba11:07:18

this is my target but before I'll try little apps

ejemba11:07:33

with smaller theme

ejemba11:07:08

is there any way to "transform" existing html to clojure ?

thedavidmeister13:07:57

@ejemba yeah there is somewhere i think

thedavidmeister13:07:20

@micha this exists doesn't it? ^^

thedavidmeister13:07:33

but manually it's just <div class="foo">Hello world</div> becomes (div :class "foo" "Hello world")

thedavidmeister13:07:49

the div hoplon function returns a div dom element

jjttjj15:07:49

@thedavidmeister @ejemba yeah it's the html2cljs task in boot-hoplon