Fork me on GitHub
#hoplon
<
2017-05-11
>
leontalbot03:05:03

I having a hard time with Hoplon and open graph - og meta stuff

leontalbot03:05:57

I think what FB bot sees is a naken page, without my content, and of course without my og meta tags

leontalbot03:05:23

probably prerender boot task should do it... testing...

leontalbot03:05:18

doesn't work...

leontalbot03:05:26

(deftask make-war
  "Build a war for deployment"
  []
  (comp (hoplon)
        (cljs :optimizations :advanced)
        (prerender)
        (uber :as-jars true)
        (web :serve 'app.server/prod-app)
        (war)
        (target :dir #{"target"})))

cpmcdaniel17:05:38

so, I’m curious about code organization in hoplon. Do any of the demos demonstrate splitting components into separate namespaces, or even separate artifacts for reuse in other projects?

flyboarder19:05:34

@cpmcdaniel it’s the same as any other cljs app

flyboarder19:05:57

i dont think the demo’s really showcase that

cpmcdaniel19:05:08

sorry, a bit out of my comfort zone on the client side

flyboarder19:05:54

this is generally how I organize things

cpmcdaniel19:05:02

I remember @micha giving a talk and talking about making reusable components with hoplon (maybe more specifically javelin)

flyboarder19:05:34

yeah if you are looking for that then maybe this: http://github.com/degree9/material-hl

flyboarder19:05:37

im working on updating that, it’s not stable atm

cpmcdaniel19:05:44

is that using node?

flyboarder19:05:57

and hl components

cpmcdaniel19:05:01

I mean the ClojureRemote-Chat

cpmcdaniel19:05:25

are all the .cljs files backend?

flyboarder19:05:32

and client side also

flyboarder19:05:37

the server is really minimal

flyboarder19:05:42

so is the client

cpmcdaniel19:05:58

ok, this is a good starting point, thanks

flyboarder19:05:01

if you want a better idea of how that all works check this out: http://github.com/degree9/meta

flyboarder19:05:23

it’s also not stable but will be shortly

cpmcdaniel19:05:59

doesn’t use castra, correct?

flyboarder19:05:50

node.js backend instead of java

leontalbot23:05:55

@alandipert Thanks! It is good plan B

leontalbot23:05:11

Was wondering how to make prerender work??