• (template req)

0 Examples top

Log in to add / edit an example.

See Also top

Log in to add a see also.

Plus_12x12 Minus_12x12 Source ring/handler/dump.clj:20 top

(defhtml template
  [req]
  (doctype :xhtml-transitional)
  [:html {:xmlns "http://www.w3.org/1999/xhtml"}
    [:head
      [:meta {:http-equiv "Content-Type" :content "text/html"}]
      [:title "Ring: Request Dump"]]
      [:style {:type "text/css"} css]
    [:body
      [:div#content
        [:h3.info "Ring Request Values"]
        [:table.request
          [:tbody
            (for [key ring-keys]
              (req-pair key req))]]
        (if-let [user-keys (set/difference (set (keys req)) (set ring-keys))]
          (html
             [:br]
             [:table.request.user
               [:tbody [:tr
                 (for [key (sort user-keys)]
                   (req-pair key req))]]]))]]])
Vars in ring.handler.dump/template:
Used in 0 other vars

Comments top

No comments for template. Log in to add a comment.