Permalink
Browse files

Remove the contrib dependency

  • Loading branch information...
1 parent 1ce6ec0 commit f02007cd70abfa83838a53a7c0b910d99090efa1 @arohner arohner committed Aug 10, 2011
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/noir/core.clj
View
@@ -2,7 +2,6 @@
"Functions to work with partials and pages."
(:use hiccup.core
compojure.core)
- (:use [clojure.contrib.except :only (throwf)])
(:require [clojure.string :as string]
[compojure.route :as c-route]))
@@ -30,6 +29,9 @@
;; this would be a good candidate for match, once it's ready (https://github.com/swannodette/match)
+(defn- throwf [msg & args]
+ (throw (Exception. (apply format msg args))))
+
(defn parse-args
"parses the arguments to defpage. Returns a map containing the keys :name :action :url :destruct :body"
[args]

0 comments on commit f02007c

Please sign in to comment.