Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ornicar/clojure-kit

Clojure kit for prismic.io
https://github.com/ornicar/clojure-kit

Last synced: 9 days ago
JSON representation

Clojure kit for prismic.io

Awesome Lists containing this project

README

        

## Clojure development kit for prismic.io

## Installation

`prismic` is available as a Maven artifact from [Clojars](http://clojars.org/prismic):

```clojure
[prismic "1.0-M3"]
```

### Try it from REPL

```
git clone https://github.com/ornicar/clojure-kit
cd clojure-kit
lein repl

user=> (require '[io.prismic.api :refer :all])

user=> (def prismic (get-api "https://lesbonneschoses.prismic.io/api"))

user=> (def stores (get-by-bookmark prismic :stores))

user=> (:slugs stores)
["dont-be-a-stranger"]

user=> (require '[io.prismic.render :as render])

user=> (render/image (get-fragment stores :image))
""
```

### Continuously run tests while developing

```
lein test-refresh
```