From 3539550b9169817781ecdec9e8429fbef6b57b94 Mon Sep 17 00:00:00 2001 From: Matthias Andreas Benkard Date: Wed, 22 Feb 2012 00:19:51 +0100 Subject: Reintroduce ClojureQL dependency. --- project.clj | 1 + src/mulk/benki/wiki.clj | 5 +++++ 2 files changed, 6 insertions(+) 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 -- cgit v1.2.3