Skip to content
This repository has been archived by the owner on Mar 14, 2021. It is now read-only.

CodeFormatTest

kriyative edited this page Jul 14, 2011 · 1 revision

The issue seems to be due to the two following code blocks:

(js
 (defn test-fn [num-list]
   (let [[a b] num-list
         c (+ b 1)]
     (+ a b c))))

(jq
 (defn test []
   (.append ($ document.body)
            (html
             [:div {:id "container"}
              [:span {:class "title"} "Lorem ipsum blah blah"]
              [:ul {:id "hmenu"}
               [:li [:a {:class "link_login"} "Login"]]
               [:li [:a {:class "link_signup"} "Signup"]]
               [:li [:a {:class "link_about"} "About"]]
               [:li [:a {:class "link_contact"} "Contact"]]]]))))

By themselves the expressions render correctly, but when put together they result in incorrect HTML.

Clone this wiki locally