Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alekcz/storyblok-clj
A simple client for the storyblok api
https://github.com/alekcz/storyblok-clj
clojure
Last synced: about 1 month ago
JSON representation
A simple client for the storyblok api
- Host: GitHub
- URL: https://github.com/alekcz/storyblok-clj
- Owner: alekcz
- License: epl-1.0
- Created: 2019-09-28T18:16:08.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2020-08-10T11:14:04.000Z (over 4 years ago)
- Last Synced: 2024-11-08T16:03:13.804Z (about 2 months ago)
- Topics: clojure
- Language: Clojure
- Size: 18.6 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# storyblok-clj
A clojure library for working with [Storyblok](https://www.storyblok.com/)
## API
There is currently only one method in the API.```clojure
(require '[storyblok-clj.core :as sb])(def rich-text-map (-> response-map :story :content :rich-text-field))
(sb/richtext->html rich-text-map)
;You can use this as yogthos/Selmer filter like so
(require '[selmer.filters :as sf])
(sf/add-filter! :richtext (fn [richtext] [:safe (sb/richtext->html richtext)]))
```
## License
Copyright © 2019 Alexander Oloo
Distributed under the Eclipse Public License either version 1.0 or (at
your option) any later version.