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 <bluestar...@gmail.com> wrote:
> Hi all,
>
> I'm having a problem that may or may not be Compojure specific, so I
> thought I'd try this group since the answer is probably easy- I am
> just stuck.
>
> I am reading the string through a simple form
>
> (defn view-input []
>  (view-layout
>   [:h2 "Enter one datum:"]
>   [:form {:method "post" :action "/"}
>    [:input.datum {:type "text" :name "my_datum"}]
>    [:input.action {:type "submit" :value "Add"}]]))
>
> where the route for posting is
>
>  (POST "/" [a]
>   (view-output a)))
>
> I then simply want to display what I entered and submitted (say I
> typed the string "a").
>
> (defn view-output [a]
>  (view-layout
>   [:h2 (str "This is what you entered: " a)))
>
> However what I get is this:
>
> clojure.core$...@1e731e90
>
> Thanks in advance for your help!
> Victor

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to