Permalink
Browse files

Update noir.

  • Loading branch information...
1 parent 251b096 commit c3ccdbabb312388be0bb42e268603a0cdf9e898b @Raynes committed Nov 7, 2011
Showing with 3 additions and 7 deletions.
  1. +1 −1 project.clj
  2. +2 −6 src/tryclojure/core.clj
View
@@ -1,7 +1,7 @@
(defproject tryclojure "0.1.0-SNAPSHOT"
:description "A simple web-based Clojure REPL for trying out Clojure without having to install it."
:dependencies [[org.clojure/clojure "1.3.0"]
- [noir "1.2.0"]
+ [noir "1.2.1"]
[commons-lang/commons-lang "2.5"]
[clojail "0.5.0-beta3"]]
;; For lein and Heroku compatibility. If you're using cake, add
View
@@ -1,6 +1,5 @@
(ns tryclojure.core
- (:use ring.adapter.jetty
- [hiccup form-helpers page-helpers]
+ (:use [hiccup form-helpers page-helpers]
ring.middleware.file
noir.core
[noir.response :only [json]]
@@ -113,9 +112,6 @@
(into secure-tester-without-def
#{'tryclojure.core}))
-(defn update-session! [f & args]
- (apply swap! session/*noir-session* f args))
-
(defn make-sandbox []
(sandbox try-clojure-tester
:timeout 2000
@@ -129,7 +125,7 @@
(defn eval-request [expr]
(try
- (eval-string expr (get (update-session! find-sb) "sb"))
+ (eval-string expr (get (session/swap! find-sb) "sb"))
(catch TimeoutException _
{:error true :message "Execution Timed Out!"})
(catch Exception e

0 comments on commit c3ccdba

Please sign in to comment.