Fork me on GitHub
#reagent
<
2016-01-04
>
niquola14:01:17

Hi, i'm using garden with reagent, but [:style (css ...)] when converted into html, escapes some characters in css - ' at least . How to pass unescaped string into style?

shanekilkelly15:01:34

@nicola: do you have an example css style that’s triggering this problem?

niquola15:01:58

{:font-family "'Exo 2'"}

niquola15:01:09

' is escaped

niquola15:01:23

ie replaced by html entity

shanekilkelly15:01:32

just out of interest, is there any reason to have two set’s of quotes around Exo 2?

shanekilkelly15:01:04

ah, even the double-quotes are getting escaped. I see

shanekilkelly15:01:51

Sorry, I’m out of ideas.

peterbak15:01:25

on a related note, any way to specify raw HTML in a reagent component?

shanekilkelly15:01:51

I’d imagine there should be, but I’m not seeing anything about it in either the reagent docs or source.

luposlip16:01:46

Can anyone point to hints on how to convert a re-frame-template generated hello world app to something that can run in a docker container?

luposlip16:01:48

currently running figwheel in a container, but 1: cannot communicate with it from my host mac (port mapping?), and 2: of course I shouldn’t use figwheel in production but cljsbuild once, and 3: I should probably use uberjar, but cannot find a project.clj that has both nice figwheel for re-frame and profiles for uberjar (and never understood leiningen project.cjl deeply enough to know exactly what to do myself)

gadfly36117:01:15

@luposlip maintainer of re-frame-template here. Can you open an issue requesting this? I have done this before, just gotta find the dockerfile i used

luposlip17:01:41

w00t, great @gadfly361! simple_smile Will do that right away.

luposlip17:01:44

I’m the one who's thanking simple_smile

sveri17:01:36

@luposlip: Have a look at: https://github.com/sveri/closp Although I don't use re-frame, this template contains reagent as dependency and should provide a running uberjar. Although I don't test that very often. I struggled with this too a lot, that's why I created that template.

luposlip17:01:16

Tnx @sveri, will look at it!

gadfly36121:01:04

@luposlip i commented on the issue and offered up a simple way for serving up staric files based on the nginx image. Looking at @sveri dockerfile in closp, that looks sweet for making an uberjar! Maybe the Dockerfile could be FROM clojure instead of java, may save the lein setup.

gadfly36122:01:21

(Im a docker noob, so definitely defer to others!)

sveri22:01:41

@gadfly361: Could be, I am open for improvements. And I think at the time, when I setup that dockerfile, there was no clojure dockerfile yet simple_smile

gadfly36122:01:27

Yeah, docker is moving almost too fast! I got a book a few days ago and it already seemed outdated and wasnt even a year old.

gadfly36122:01:09

Dang, your template has a lot of sweet stuff! Never tried reagent with datascript, looking forward to trying it out :)