summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--project.clj1
-rw-r--r--src/mulk/benki/wiki.clj5
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