Hi all,

I'd like to announce an experimental clojurescript library.

It is inspired by knockoutjs and other such libs.

While knockout is excellent, and compilable by google closure, I did not 
want to write a wrapper or wrap my clojure data in ko-observables.

So, I've been experimenting.

I am afraid that this is alpha and the doco is very light on.
I will begin to update as I have time. I will also be testing further with 
more meaningful sites to understand the limitations of this model.

The basic principle is to monitor a single state atom for changes.
Based on where the change happens - the appropriate ui nodes are updated.
Specific update functions are used to mark changes to the app state with 
metadata so closeout knows what to do.

Templates, behaviour and update can be completely separated. I like that.

And, if you want to have multiple atoms/state to a page - you can.
It's yet to be seen how nested atoms or intertwined templates might fair....

The source is here: https://github.com/davesann/closeout
demo cljs apps: https://github.com/davesann/closeout-demo-cljs
demo website: https://github.com/davesann/closeout-demo
and finally - the demo on heroku: http://closeout-demo.herokuapp.com/

The cljs is available as a jar on clojars [closeout "0.1.0"]

Also, the core code is fully generic clojure - and I am wondering whether 
this might be constructively applied to seesaw or similar.


I'm keen to hear opinions and constructive criticism.

Cheers

Dave




-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to