This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-02-08
Channels
- # aatree (3)
- # announcements (1)
- # architecture (5)
- # beginners (27)
- # boot (22)
- # cider (17)
- # cljsrn (8)
- # clojure (93)
- # clojure-canada (1)
- # clojure-dev (7)
- # clojure-nl (10)
- # clojure-poland (216)
- # clojure-russia (35)
- # clojurescript (163)
- # community-development (6)
- # cursive (25)
- # datavis (6)
- # datomic (18)
- # dirac (10)
- # dysphemism (4)
- # editors (3)
- # editors-rus (1)
- # emacs (15)
- # hoplon (124)
- # instaparse (25)
- # jobs (10)
- # ldnclj (78)
- # lein-figwheel (11)
- # leiningen (6)
- # off-topic (20)
- # om (149)
- # onyx (2)
- # parinfer (5)
- # portland-or (1)
- # proton (62)
- # quil (2)
- # re-frame (8)
- # spacemacs (4)
- # yada (20)
[ANN] release: aaworker version 0.1.0. Dropped async.core, added worker notifications, added ! to the end of the names of funchtions which alter state.
The tworker demo in hoplon/demos has also been enhanced to exercise all the features of aaworker
My plan for tomorrow--start working on integrating hoplon and indexedDB. Wish me luck, @micha
Hello! I get stuck with having my app working in .html.hl
So I tested with the hoplon readme simplest example. https://github.com/hoplon/hoplon#example index.cljs.hl works, but not index.html.hl
No console error
Any clue where I should look to try to make it work?
Much thanks!
(sorry!)
So @micha, where can I find it?
target/index1.html.out/??
in target/index1.html.out/hoplon/app_pages
I got a .js file
when i build it (i added the target
task so it writes to a directory) i can see the file target/index.html.out/hoplon/app_pages/_index_DOT_html.cljs
I assume javelin formula cells only propagate updates if the content doesn't match using =
, is that right? E.g. if a root cell changes, and the formula cell recomputes to the same result, no further updates will be triggered.
@dm3: that's right
Ok, now I got the cljs file @micha
So when I click "click me"
the clicks
cell doesn't update...
only with the .html.hl version...
in the html?
lol, it works!
so https://github.com/hoplon/hoplon#example is no longer supported, or perhaps just out of date.
thanks @micha! I might have I suggestion here: for .html.hl files maybe we should respect a bit more html names so that instead of going <html-meta>
I use only <meta>
and I use cljs-meta
in the hoplon script on top when needed (rarely I guess). Same for keeping on-click
attribute. That way I could use directly the designer's code without trying to adapt it. Would that make sense?
<button click="{{ #(swap! clicks inc) }}">click me</button>
<script type="text/hoplon">
(page "index.html"
(:refer-clojure :exclude [meta]))
(def meta html-meta)
</script>
nice!!
yes, makes sense!!
how about a way to keep on-click
?
@micha LOL! I guess I do
yes, important too
@micha in .cljs.hl
files not sure, but in html.hl
files I see a "benefit" to stick to "on-". I mean, if you use html.hl files, it's probably because you depend on a designer who doesn't know about clojure
onclick right
you don't want to use attributes i don't think, because i think they're not the same on different browsers
so how would look our example ideally?
(btw, I think we should stick to click
then and forget the "on-")
Yeah ok. So click
is an arbitrary attribute in the html world, but a convention for hoplon apps.
that's fine with me
sorry for the noise
and thanks for the (def meta html-meta)
trick!
when you have an attribute whose value is a function the hoplon implementation interprets that as an event handler
because generally it makes no sense to set an html element attribute to a function value
oh ok
thanks!
On an other subject, I am no trying to figure out how I can write partial views of my app in html
The example I find use (defelem ...) and the views always seems to be written in hlisp
Would it be a way (and is it a good idea?) to defines thoses vies in html (in a .html.hl file?)
because yes the designer should be able to have a simple way do combine some elements to make a new element
yep...
I was using enlive for another project, but it gets really complicated
ok, if you need to test this kind of new feature, I can help out