Re: Displaying POSTed string from form text-field in Compojure

2010-09-18 Thread Victor Olteanu
Miki, Thanks a lot - the mystery has been solved. It had to do with the way I was handling the POST route. It seems it needs explicit 'binding' as you mentioned (POST "/" {params :params} (view-output (params "my_datum" or (POST "/" {{a "my_datum"} :params} ...) Thanks again! Victo

Re: Displaying POSTed string from form text-field in Compojure

2010-09-17 Thread Miki
See http://clojure.pastebin.com/ncaULRbU (works for me). I've changed the POST handler to use *params* and I also think you're not closing the :h2 in view output. On Sep 17, 3:11 pm, Victor Olteanu wrote: > Sure, here it is: > > (defn view-layout [& content] >   (html >    (doctype :xhtml-strict)

Re: Displaying POSTed string from form text-field in Compojure

2010-09-17 Thread Victor Olteanu
Sure, here it is: (defn view-layout [& content] (html (doctype :xhtml-strict) (xhtml-tag "en" [:head [:meta {:http-equiv "Content-type" :content "text/html; charset=utf-8"}] [:title "Datum"]] [:body content]))

Re: Displaying POSTed string from form text-field in Compojure

2010-09-17 Thread Miki
My *guess* it's somehow connected to the code of "view-layout" since it shows the representation of the function "str". Can place the full code (including view-layout) somewhere? On Sep 17, 12:35 pm, Victor wrote: > Hi all, > > I'm having a problem that may or may not be Compojure specific, so I