Skip to content

Instantly share code, notes, and snippets.

@ngw ngw/gist:f8ef003532c8d712dd9b Secret
Created Dec 18, 2013

Embed
What would you like to do?
; src/theshire/models/element.clj
(ns theshire.models.element
(:require [clojurewerkz.welle.core :as wc]
[clojurewerkz.welle.buckets :as wb]
[clojurewerkz.welle.kv :as kv])
(use '[ring.util.codec :only [url-encode]]))
(defn create [{url :url vals :vals}]
(kv/store "elements" (url-encode url) vals :content-type "application/clojure"))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.