Re: [ClojureScript] Enlive-style templating in server-side clojurescript?

2015-07-06 Thread Creighton Kirkendall
Tim, There is a current effort underway by Luke Vanderhart to port enlive to cljs. I know that he has a working version in his repo. He is working towards getting the changes accepted into main enlive project. https://github.com/levand Creighton On Tue, Nov 11, 2014 at 2:55 AM, Tim Galebach w

Re: [ClojureScript] ANN: erinite/template

2015-06-08 Thread Creighton Kirkendall
Daniel, I love the idea. I think something similar to kioo's compiler would allow this to work for om, reagent. If I get a chance I will try and look at how hard it would be to swap out enlive for erinite. I really like the pure data style of the transforms. I have often wanted that with both e

Re: [ClojureScript] DOM string manupilation using domina

2014-08-14 Thread Creighton Kirkendall
; > Thanks a lot! > > > On Wednesday, August 13, 2014 6:15:02 PM UTC-7, Creighton Kirkendall wrote: > > Li, > > Can you give me a bit more description what you are trying to do. If > you are looking to manipulate css and raw html in the browser, I would > r

Re: [ClojureScript] DOM string manupilation using domina

2014-08-13 Thread Creighton Kirkendall
Li, Can you give me a bit more description what you are trying to do. If you are looking to manipulate css and raw html in the browser, I would recommend looking at enfocus. Its a higher level abstraction than domina and has pretty solid documentation. I contains tools for extracting and transfor

Re: [ClojureScript] kioo dynamic selectors

2014-07-29 Thread Creighton Kirkendall
Mark, Yes, kioo now supports a transform called lifecycle that allows you attache react lifecycle methods to any node. I am putting together a sample app to demonstrate it over the next few days. In the mean time below is a working example of controlling focus and changing input sate with om

[ClojureScript] [ANN] - Enfocus 2.1.0

2014-07-08 Thread Creighton Kirkendall
This release introduces optimized view bindings, two way form bindings. Documentaion: http://ckirkendall.github.io/enfocus-site/index.html Github: https://github.com/ckirkendall Enfocus is a library for building rich interactive UI in ClojureScript. Main Features include: dom manipluation

[ClojureScript] [ANN] - Fresnel 0.2.2

2014-07-08 Thread Creighton Kirkendall
A library for composing lenses and working with complex state objects. This library is a paired down version lens code embeded in Christophe Grand's Eliven. Github: https://github.com/ckirkendall/fresnel Eample Code: http://ckirkendall.github.io/enfocus-site/#view-binding -- Note that posts f

[ClojureScript] Re: templating for clojurescript react libraries

2014-06-21 Thread Creighton Kirkendall
Paul, I am not sure I understand what you are looking for. Maybe you could give some examples what your thinking. Currently, Sablano and Kioo try to bridge the gap between html and react/om. Sablano is the closest to jsx, in that it mixes the presentation directly with the component definitio

[ClojureScript] Re: templating for clojurescript react libraries

2014-06-21 Thread Creighton Kirkendall
Kioo was certainly created to address this exact issue. It compiles standard HTML to om/react nodes and uses css style selectors to attach functionality instead of embedding it into the HTML. -- Note that posts from new members are moderated - please be patient with your first post. --- Yo

Re: [ClojureScript] kioo dynamic selectors

2014-05-20 Thread Creighton Kirkendall
I think the best way is to wrap this in a IShouldUpdate check. Where we check the values against the previous values. We can do this pretty easily in this case but can't use a template until I finish up wrap. (defn handle-change [e data edit-key owner] (om/transact! data edit-key (fn [_] (.

Re: [ClojureScript] kioo dynamic selectors

2014-05-19 Thread Creighton Kirkendall
> On the subject of templates though, why doesn't something as simple as this > work to track changes to input fields? > > > (defn handle-change [e data edit-key] > (println "handle-change:" edit-key @data) > (om/transact! data edit-key (fn [_] (.. e -target -value > > > > (deftemplat

Re: [ClojureScript] kioo dynamic selectors

2014-05-19 Thread Creighton Kirkendall
As of right now all the selectors are done at compile time so dynamic selectors are not possible. That being said I think there are several ways to accomplish what you are trying to do.Is there a reason you are calling om/build here instead of just calling do-input-field. I am trying to under

Re: [ClojureScript] XML parsing and manipulation

2014-04-17 Thread Creighton Kirkendall
I have used https://github.com/davidsantiago/hickory in the past for xml parsing in the browser. On Thu, Apr 17, 2014 at 7:31 PM, Daniel Zacarias wrote: > Hey folks, > > I've been searching around JIRA and on the web and couldn't find any > reference to this: what's the story for XML parsing an

Re: [ClojureScript] kioo question about snippets

2014-04-03 Thread Creighton Kirkendall
Daniel, >From a design perspective snippet simply wraps the component call in a >function in much the same way you are wrapping the component call in a >function when you use component directly. You can see the basic structure of >the call here: https://github.com/ckirkendall/kioo/blob/master/

Re: [ClojureScript] kioo question about snippets

2014-04-02 Thread Creighton Kirkendall
Dan, It certainly should update the content here. Can you post a full gist of that illustrates the issue and I will try to reproduce it. Creighton On Wed, Apr 2, 2014 at 6:32 PM, Daniel Kersten wrote: > Hi, > > I've been playing with kioo and love it, but I'm a bit confused by > snippets (vs

[ClojureScript] Re: Convert javascript library call to clojurescript call (to canvasjs)

2014-03-30 Thread Creighton Kirkendall
It should look something like this. (def chart (js/CanvasJS.Chart. "chartContainer" (clj-js {:title {:text "Fruits sold in First Quarter" } :data {:type "colum" :data [{:label "ba

[ClojureScript] Kioo 0.3.0 released

2014-02-21 Thread Creighton Kirkendall
Kioo 0.3.0 has been released and tested against the newest om, reagent and React. https://github.com/ckirkendall/kioo New in this release: listen transform -This transform allows to attach standard event listeners for either dom events or React life cycle events. snippet/template - While kio

Re: [ClojureScript] Pre-rendering application state with Om?

2014-02-09 Thread Creighton Kirkendall
Mike, Can you give me more information as to what you are trying to do? Some changes recently to Kioo, now allow you to share templates between the server and client side using cljx and enlive. Not sure it would meet your use case but may give you a basis to build something upon. I also know tha

Re: [ClojureScript] Re: Kioo now has support for Reagent and improved Om support

2014-02-05 Thread Creighton Kirkendall
of the Om protocols to make sure that a row's only > shown when it's, say, 1 window height away from the viewport. > > Is there a way to return a reified instance of IRender directly from Kioo, > rather than having to go through the kioo/content, etc functions? > > On Thu

[ClojureScript] Kioo now has support for Reagent and improved Om support

2014-01-30 Thread Creighton Kirkendall
Kioo 0.1.0 - now has support for Reagent and improved Om support. https://github.com/ckirkendall/kioo Kioo is now separated into three main namespaces. Each namespace has the same api but emit compiled templates geared to the three different underlying frameworks. core - React.js directly om

Re: [ClojureScript] Om Templating

2014-01-25 Thread Creighton Kirkendall
together, which I > think I prefer, but really neither is quite like JSX that has raw html with > code embedded. > > > > Correct me if I'm not "getting it" > > > > On Friday, January 24, 2014 5:38:04 PM UTC-6, Creighton Kirkendall wrote: > &

Re: [ClojureScript] Om Templating

2014-01-24 Thread Creighton Kirkendall
Check out kioo, it does exactly what suggest. It uses a model similar to enlive to pull html in and compile into react nodes. https://github.com/ckirkendall/kioo CK On Fri, Jan 24, 2014 at 6:16 PM, Joel wrote: > Is there a way to convert html to Om/ClojureScript syntax easily? Or, is > ther