[ClojureScript] ANN: erinite/template

2015-06-08 Thread Daniel Kersten
Hi everyone, I am working on a collection of web development libraries to accomplish various tasks that I've found myself wanting or needing in recent months. Collectively, I've dubbed them Erinite. The first of these libraries is erinite/template, a Clojure(script) hiccup transformation library

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

Re: [ClojureScript] Om - how to get a ref for a component built with om/build?

2015-06-08 Thread Wilker
Just for other people that may end up at the same situation, in my case here I mitigated it with events. In my youtube case the time when the player is available is actually some point in future after the elements are rendered, so what I did was to create a new event `on-player-ready`, so at the

Re: [ClojureScript] ANN: erinite/template

2015-06-08 Thread Daniel Kersten
Thanks Creighton, Let me know how it goes if you get a chance to play with it. The current version is literally only a weekends worth of work, so there are likely many ways it can be improved. I'll continue working on it over the coming weeks, so if there is anything you need in this, don't

[ClojureScript] Re: Compiling multiple apps from single source tree/debugging closure advanced mode

2015-06-08 Thread Novi Border
Great, I managed to get the build working with shadow-build, outputing three separate 'main' cljs files and two different common modules:) Thanks guys! -- Note that posts from new members are moderated - please be patient with your first post. --- You received this message because you are

Re: [ClojureScript] Re: Compiling multiple apps from single source tree/debugging closure advanced mode

2015-06-08 Thread David Nolen
If all you wanted was modules and multiple entry points under advanced compilation, ClojureScript has supported that for months now (and was in fact inspired by the work in shadow-build). David On Mon, Jun 8, 2015 at 4:58 PM, Novi Border novibor...@gmail.com wrote: Great, I managed to get

[ClojureScript] Om - how to get a ref for a component built with om/build?

2015-06-08 Thread Wilker
Hi I'm creating a video player that wraps the Youtube player API, and I'm creating it in 2 layers (one layer just does with Youtube internals, and this one is used by another one that has the controls). On the parent component (the one with the controls) I need to access the owner of the youtube

Re: [ClojureScript] Om - how to get a ref for a component built with om/build?

2015-06-08 Thread David Nolen
You can always use the React component API directly through `owner` if you must. David On Mon, Jun 8, 2015 at 12:54 PM, Wilker wilkerlu...@gmail.com wrote: Hi I'm creating a video player that wraps the Youtube player API, and I'm creating it in 2 layers (one layer just does with Youtube

Re: [ClojureScript] Om - how to get a ref for a component built with om/build?

2015-06-08 Thread Wilker
Yeah, I just can't find an easy way to point to that specific element, this is what my parent component look like: (defn player [data owner] (reify om/IDisplayName (display-name [_] MusicoucherPlayer) om/IInitState (init-state [_] {:position 0 :playing false :yt-state

[ClojureScript] state and quiescent (or other react library)

2015-06-08 Thread Ryan Waters
I'd like some beginner help with application state. The browser-side clojurescript I'm writing happens to hook into a react library like Quiescent (I started with Om, then went to Reagent and now I'm thinking Quiescent might fit better ... it's up in the air). I'm storing all the component state

Re: [ClojureScript] Compiling multiple apps from single source tree/debugging closure advanced mode

2015-06-08 Thread David Nolen
There's a JIRA ticket to make the `:main` compiler option working with :`optimizations` levels other than `:none`. This is low hanging fruit. The other option is to pass a path identifying only the entry-point source file. There's no requirement that you supply a directory. David On Sun, Jun 7,

[ClojureScript] Re: Compiling multiple apps from single source tree/debugging closure advanced mode

2015-06-08 Thread Thomas Heller
Hey, you could take a look at shadow-build [1]. I wrote it for exactly the use case you describe since I had that issue myself. CLJS itself will always include all source files it can find in a build which leads to your issues. shadow-build will also discover all source files but will only

Re: [ClojureScript] Compiling multiple apps from single source tree/debugging closure advanced mode

2015-06-08 Thread Dustin Getz
You can play classpath games like this: :source-paths [client/src client/src_server] :source-paths [client/src client/src_browser client/dev_src] you can also specify different mains: :main pp-web.dev :main pp-web.core From what David wrote apparently :main doesn't work without :optimizations