Fork me on GitHub
#hoplon
<
2016-04-12
>
micha00:04:25

@chromalchemy: alan and i did some work on a jsfiddle type app for hoplon this evening

micha01:04:30

i wonder how feasible it is to port the javelin macros to cljs for use with eval

dm309:04:41

trying to figure out how prop-cell and set-cell=! are useful

dm309:04:05

does anyone have any compelling examples?

jumblerg12:04:21

@dm3: i think the idea behind the prop-cell was similar to that of the mutation observers we’ve been discussing more recently

dm312:04:12

(btw if you haven't seen I've played around with MutationObserver - http://clojurians-log.mantike.pro/hoplon/2016-04-09.html)

jumblerg12:04:54

yeah, i saw that. i’ve been doing the same thing. simple_smile

jumblerg12:04:33

wrt the prop cell, while hooking into the event loop might not be the most efficient way to react to changes to a property of the browser, it is a very general solution that works.

jumblerg12:04:20

@thedavidmeister: if that is what i think it is, hoplon has had that from the very beginning

jumblerg12:04:12

hoplon has html support

thedavidmeister12:04:40

but i wanted to turn the html syntax into hoplon syntax

jumblerg12:04:45

and allows you to represent any of the defelms as html

thedavidmeister12:04:45

not use the html directly

thedavidmeister12:04:55

can you give me an easy example?

jumblerg12:04:38

i guess it depends on what you mean by “use html directly"

alandipert12:04:48

has anyone experimented with codemirror from hoplon? i'm having trouble with it

thedavidmeister12:04:16

@jumblerg: exactly like what is on that page i linked

jumblerg12:04:40

@thedavidmeister: i’m not aware of a page exactly like that for converting html to its clojurescript representation in the browser, if that’s what you mean.

thedavidmeister12:04:10

yes, that’s what i mean simple_smile

jumblerg12:04:04

yeah, that could be a useful widget.

micha12:04:33

there is a task that ships with boot-hoplon

micha12:04:47

boot html2cljs --file foo.html

micha12:04:56

@thedavidmeister: is that what you mean?

micha12:04:06

given a html file, print the sexp representation?

thedavidmeister12:04:38

@micha: probably exactly that, thanks simple_smile

micha12:04:36

it's a little quirky

micha12:04:11

i think there is a bug in it, but it's small

micha12:04:15

only a few lines of code

micha12:04:35

i thnk you need to make a script tag at the top of the file for it to work

micha12:04:54

<script></script>
<html>
...

thedavidmeister13:04:12

java.lang.IndexOutOfBoundsException

thedavidmeister13:04:16

thats generally what i’m getting

thedavidmeister13:04:35

i will add it to my todo list to make a widget like the one i linked >.<

micha13:04:42

yeah it might neeed some debugging simple_smile

micha13:04:45

might be easier to do it from the repl maybe

micha13:04:01

boot-hoplon has functions for doing it though

thedavidmeister13:04:18

yeah, i’ll steal the function and put it in a text area

dm314:04:07

@micha - have you ever used prop-cell or set-cell!=?

micha14:04:49

prop-cell is naive, it really needs mutation observers or something to be correct

micha14:04:58

set-cell!= is useful to either change the formula in an existing formula cell or to make an input cell into a formula cell

micha14:04:17

they're only useful very rarely, really

thedavidmeister14:04:43

so who is able to do reviews of PRs?

thedavidmeister15:04:46

i g2g, getting late here

thedavidmeister15:04:52

i’ll check out the PR again tomorrow simple_smile

tbrooke15:04:10

Does anyone have thoughts or examples of authentication/authorization Hoplon Apps?

alandipert15:04:43

@thedavidmeister: what version of firefox do you use? running locally i get a timeout as selenium attempts/fails to connect to the open firefox window

tbrooke16:04:27

@alandipert: Thanks that gives me a direction -frontend looks pretty straight forward - not sure about github - looked at Stormpath they look pretty robust, they have a servlet and I Googled and found tailrecursion/clojure-adopter-servlet - May be doable ?

alandipert16:04:03

@tbrooke: the github code in there should work with any oauth provider... which still means that a 3rd party will host identities

alandipert16:04:42

i'm not familiar with stormpath. but yeah clojure-adapter servlet is a great way to deploy apps to servlet containers. we have it baked into boot now, you can make uberwars via boot uber/war

micha16:04:37

I've used stormpath in a hoplon app it works well

tbrooke16:04:26

@micha @alandipert thanks heading down that “storm” path

micha16:04:10

that was a path-etic pun