[ClojureScript] Can anyone recommend a library for saving attachments and images on S3?

2017-02-02 Thread Hari Krishnan
Hello,

Can anyone recommend a CarrierWave (for Ruby on Rails) like library for 
Clojure/Clojurescript, for S3 and Datomic?  Much appreciated.

What is the good practice?  Any thoughts?

Thanks in advance.
-Hari

-- 
Note that posts from new members are moderated - please be patient with your 
first post.
--- 
You received this message because you are subscribed to the Google Groups 
"ClojureScript" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojurescript+unsubscr...@googlegroups.com.
To post to this group, send email to clojurescript@googlegroups.com.
Visit this group at https://groups.google.com/group/clojurescript.


Re: [ClojureScript] CSS in CLJS

2017-02-02 Thread Jeaye
On Thu, Feb 02, 2017 at 02:36:43PM -0800, Thomas Heller wrote:
> Hello,
> 
> I'm not sure how many of you are in this horrible situation where you have to 
> write CSS for your React Components. I typically have to write way more than 
> I'd like and always hated the way I wrote it. Until a few weeks ago.
> 
> I wrote this thing and so far I really like it. Too early to tell whether 
> this is actually a good idea but I already prefer it over pretty much 
> everything else I have used in the past (CSS, SCSS, OOCSS, BEM, ...).
> 
> Anyways here it goes:
> 
> (ns my.fancy.component
>   (:require [shadow.markup.css :as css :refer (defstyled)]))
> 
> (defstyled title :h1
>  [env]
>  {:color "red"})
> 
> (h1 {} "hello world")
> 
> In Clojure this produces hello 
> world. There are also ways to generate the appropriate CSS so the 
> element is actually styled in your page. Not totally settled on the final API 
> but it works well enough for now.
> 
> In ClojureScript this produces a ReactElement and should work with React 
> natively and most CLJS React Wrappers like OM (although I tried no other than 
> my own). No extra CSS generation is required here, just include it in your 
> page and it will be styled.
> 
> More here: https://github.com/thheller/shadow/wiki/shadow.markup
> 
> This is basically my take on the whole css-in-js thing that is happening in 
> the JS world if anyone follows this. I wasn't happy with any of their 
> implementations so I wrote this.
> 
> If you'd like to use this try it with this:
> 
> [thheller/shadow-client "1.0.180"]
> 
> The Clojure part also requires hiccup, the CLJS parts require React via 
> cljsjs.react.
> 
> If anyone is actually interested in this I'd be happy to go over some more 
> details. I just open-sourced this as I wanted to use it in another project 
> and needed a place to put it. Consider this very ALPHA though, you have been 
> warned. ;)
> 
> Cheers,
> /thomas
> 

Thomas,

Thanks for the library. For all of my projects which require CSS, I've bee 
using garden [1] -- how does your shadow client compare and what would you list 
as the pros/cons for using shadow over garden?

Regards,
Jeaye

1: https://github.com/noprompt/garden

-- 
Note that posts from new members are moderated - please be patient with your 
first post.
--- 
You received this message because you are subscribed to the Google Groups 
"ClojureScript" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojurescript+unsubscr...@googlegroups.com.
To post to this group, send email to clojurescript@googlegroups.com.
Visit this group at https://groups.google.com/group/clojurescript.


signature.asc
Description: PGP signature


[ClojureScript] CSS in CLJS

2017-02-02 Thread Thomas Heller
Hello,

I'm not sure how many of you are in this horrible situation where you have to 
write CSS for your React Components. I typically have to write way more than 
I'd like and always hated the way I wrote it. Until a few weeks ago.

I wrote this thing and so far I really like it. Too early to tell whether this 
is actually a good idea but I already prefer it over pretty much everything 
else I have used in the past (CSS, SCSS, OOCSS, BEM, ...).

Anyways here it goes:

(ns my.fancy.component
  (:require [shadow.markup.css :as css :refer (defstyled)]))

(defstyled title :h1
 [env]
 {:color "red"})

(h1 {} "hello world")

In Clojure this produces hello 
world. There are also ways to generate the appropriate CSS so the element 
is actually styled in your page. Not totally settled on the final API but it 
works well enough for now.

In ClojureScript this produces a ReactElement and should work with React 
natively and most CLJS React Wrappers like OM (although I tried no other than 
my own). No extra CSS generation is required here, just include it in your page 
and it will be styled.

More here: https://github.com/thheller/shadow/wiki/shadow.markup

This is basically my take on the whole css-in-js thing that is happening in the 
JS world if anyone follows this. I wasn't happy with any of their 
implementations so I wrote this.

If you'd like to use this try it with this:

[thheller/shadow-client "1.0.180"]

The Clojure part also requires hiccup, the CLJS parts require React via 
cljsjs.react.

If anyone is actually interested in this I'd be happy to go over some more 
details. I just open-sourced this as I wanted to use it in another project and 
needed a place to put it. Consider this very ALPHA though, you have been 
warned. ;)

Cheers,
/thomas

-- 
Note that posts from new members are moderated - please be patient with your 
first post.
--- 
You received this message because you are subscribed to the Google Groups 
"ClojureScript" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojurescript+unsubscr...@googlegroups.com.
To post to this group, send email to clojurescript@googlegroups.com.
Visit this group at https://groups.google.com/group/clojurescript.