Fork me on GitHub
#reagent
<
2016-01-05
>
shanekilkelly09:01:42

@peterbak @nicola: This is a bit late, but it turns out there is a way to set raw html in reagent components: https://github.com/reagent-project/reagent/issues/104

niquola19:01:00

@shanekilkelly: thx for answer. But i'm steel sure simple_smile that content of tags like [:script] [:style] should not be encoded - should i raise discussion in mail list or here?

shanekilkelly19:01:00

I think you’re right @nicola, it feels to me like script/style tags should not be escaped like that. I’d advise starting a thread on the mailing list, or opening an issue on the hiccup repo.

gadfly36119:01:59

I'd recommend mailing list. As an aside, reagent doesnt use hiccup, just a makeshift 'hiccup-like' syntax.

niquola20:01:01

@gadfly361: ok thx, i'm just trying to use garden with reagent simple_smile

virmundi20:01:15

hi, is anyone here familiar with bookmarking and re-frame?

sveri20:01:58

@gadfly361: Glad you like it. If you have questions...just ask. And yes, docker is, uhm. faster than anything else I have seen in IT 😄 At least for a 1.x release.

peterbak20:01:29

@virmundi: I'm working on my first re-frame app as we speak, so not an expert by any means

virmundi20:01:32

@peterbak: have you figured out a way to change the URL in the browser with re-frame so it's more like Angular or Secretary?

peterbak20:01:31

I'm using something like this:

(defn navigate-to [path]
  (set! (.-location js/window) (str "/#" path))
  (secretary/dispatch! path))

peterbak20:01:57

secretary doesn't update the URL in the location bar, you have to do that manually

peterbak20:01:04

is that what you were asking about?

virmundi20:01:52

@peterbak: it is. Did re-frame say to use secretary? I could have missed it.

virmundi20:01:53

@peterbak: you're right. It's in the demo for todo.

virmundi20:01:00

@peterbak: thanks for listening

peterbak20:01:42

yeah, secretary has been working out pretty well for us so far

virmundi20:01:25

i got the feeling that re-frame was supposed to make secretary obsolete. I can see how it could do that if you were making a true SPA (like Word where there is no back button).

virmundi20:01:42

@peterbak: have you tried getting reagent to render on the server side?

peterbak21:01:28

I can see how having distinct URL paths for different parts of an SPA can still be useful for things like direct linking etc

peterbak21:01:56

haven't tried server-side rendering, doing an SPA on top of rest-ish http api

si1422:01:04

is there any way to make understanding this namespace https://github.com/reagent-project/reagent/blob/master/src/reagent/ratom.cljs simpler? simple_smile

si1422:01:00

I mean make it simpler for me. Can I look up something before diving in the code?

mikethompson23:01:14

@si14: have you looked at the re-frame readme? This part will give you the concepts, which will help a bit to understand the code: https://github.com/Day8/re-frame#how-flow-happens-in-reagent