> > Comments/criticism/improvements welcomed.
>
> "EVIL" doesn't have to be a macro. You could just make it a function:
>
> (defn EVIL [path]
> (GET path [expr]
> (if (nil? expr)
> (html path)
> (json-str (eval-expr expr
Right you are kind Sir.
Pushed to clojars.
--
You rec
It's working! I'm using load-string instead of read-string.
Sorry about the noise.
2010/12/7 Vilson Vieira :
> Hello Miki,
>
> I'm writing a simple Clojure editor based on jSyntaxPane. I'm trying
> to intern a function (it's defined on live-processing.editor, and I
> want to redefine it with (eva
On 21 November 2010 22:57, Miki wrote:
> Usage is simple - add "EVIL" definition to your application
> "defroutes":
>
> (defroutes app
> (GET "/" [] "Nothing here! (try /evil)")
> (EVIL "/evil")
> (route/not-found "Dude! I can't find it."))
>
> Comments/criticism/improvements welcomed.
Hello Miki,
I'm writing a simple Clojure editor based on jSyntaxPane. I'm trying
to intern a function (it's defined on live-processing.editor, and I
want to redefine it with (eval (read-string ...))). Any help?
Thanks.
2010/12/6 Miki :
> I've played a bit with the code and now namespaces behave.
I've played a bit with the code and now namespaces behave. There's
even a set-ns! function to set the current namespace to what you want.
On Nov 30, 9:07 am, Constantine Vetoshev wrote:
> On Nov 29, 2:25 pm, Miki wrote:
>
> > Yeah, it uses "load-string" which IMO default to clojure.core
> > name
> > I've tried some namespace hacking to allow the user to define the
> > namespace, but couldn't make it work
> > (there's a FIXME in the code about that).
>
> > Currently I using names with namespace - (cv-test-1.core/some-func
> > arg1 arg2). Will try to fix that soon.
>
> Could (eval (read-st
On Nov 29, 2:25 pm, Miki wrote:
> Yeah, it uses "load-string" which IMO default to clojure.core
> namespace.
> I've tried some namespace hacking to allow the user to define the
> namespace, but couldn't make it work
> (there's a FIXME in the code about that).
>
> Currently I using names with names
> This is pretty useful, thanks!
Glad someone other than me likes it :)
> I tried adding Dr. Evil into a test app, but I'm having trouble
> switching namespaces in the REPL:
>
> => *ns*
> #
> => (in-ns 'cv-test-1.core)
> #
> => *ns*
> #
>
> It seems to always reset the namespace to clojure.core.
Y
On Nov 22, 6:43 pm, Miki wrote:
> >Dr.Evilis a simple web debugger that provides a REPL to your web
> > application in a "hidden" location.
This is pretty useful, thanks!
I tried adding Dr. Evil into a test app, but I'm having trouble
switching namespaces in the REPL:
=> *ns*
#
=> (in-ns 'cv-te
Now in clojars as well, use [dr-evil "1.0.0-SNAPSHOT"] in your
project.clj
On Nov 21, 2:57 pm, Miki wrote:
> Hello All,
>
> Dr. Evil is a simple web debugger that provides a REPL to your web
> application in a "hidden" location.
>
> Usage is simple - add "EVIL" definition to your application
> "d
10 matches
Mail list logo