diff options
author | Matthias Andreas Benkard <code@mail.matthias.benkard.de> | 2012-02-22 00:19:51 +0100 |
---|---|---|
committer | Matthias Andreas Benkard <code@mail.matthias.benkard.de> | 2012-02-22 00:19:51 +0100 |
commit | 3539550b9169817781ecdec9e8429fbef6b57b94 (patch) | |
tree | 11b77909e3d4f3097c7b929eacbdcf338af23242 | |
parent | 15fd33bdd96c8ce1b0b992785cfffdf5ec5241b4 (diff) |
Reintroduce ClojureQL dependency.
-rw-r--r-- | project.clj | 1 | ||||
-rw-r--r-- | src/mulk/benki/wiki.clj | 5 |
2 files changed, 6 insertions, 0 deletions
diff --git a/project.clj b/project.clj index 13e71a4..9d643a4 100644 --- a/project.clj +++ b/project.clj @@ -26,6 +26,7 @@ [cssgen "0.2.5"] ;; Relational database access + [clojureql "1.0.3"] [korma "0.2.1"] [postgresql "9.0-801.jdbc4"] [org.clojure/java.jdbc "0.1.1"] diff --git a/src/mulk/benki/wiki.clj b/src/mulk/benki/wiki.clj index 3d7cbcf..7a64001 100644 --- a/src/mulk/benki/wiki.clj +++ b/src/mulk/benki/wiki.clj @@ -6,6 +6,7 @@ [mulk.benki util db] [clojure.core.match :only [match]] + [clojureql core predicates] noir.core) (:require [noir.session :as session] [noir.response :as response] @@ -13,6 +14,10 @@ (:import [org.jsoup.Jsoup])) +(def page_revisions (table :wiki_page_revisions)) +(def pages (table :wiki_pages)) + + (defn- html-insert-wikilinks [text] (clojure.string/replace text |