4 ms·
Does this port to an imaginary arc-on-clojure framework look more readable to you? (arc/with-page-renderer (fn [content & options] (hiccup/html [:bod
by rincewind 16y ago
Does this port to an imaginary arc-on-clojure framework look more readable to you?
(arc/with-page-renderer
(fn [content & options] (hiccup/html [:body content]))
(arc/defop "/said" [request]
(arc/aform
:form
[ [:input {:name "foo"}]
[:input {:type "submit"}] ]
:handler (fn [form-result]
(arc/onlink :text "click here"
:handler (fn [_]
(str "you said: " (:foo form-result))))))))