Skip to content

Instantly share code, notes, and snippets.

@ngw
Created December 18, 2013 14:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ngw/f8ef003532c8d712dd9b to your computer and use it in GitHub Desktop.
Save ngw/f8ef003532c8d712dd9b to your computer and use it in GitHub Desktop.
; 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