Show namespaces

This commit is contained in:
oakes
2014-03-31 12:28:13 -04:00
parent f1e3458edc
commit 1cc40a3b32
2 changed files with 16 additions and 12 deletions

View File

@@ -16,7 +16,7 @@
"attribute! :blending" :static-methods} "attribute! :blending" :static-methods}
"Body" {"body!" :methods} "Body" {"body!" :methods}
"BodyDef" {"body-def" :fields} "BodyDef" {"body-def" :fields}
"Bresenham2" {"bresenham2!" :methods} "Bresenham2" {"bresenham-2!" :methods}
"BSpline" {"b-spline!" :methods} "BSpline" {"b-spline!" :methods}
"Button.ButtonStyle" {"style :button" :constructors} "Button.ButtonStyle" {"style :button" :constructors}
"CatmullRomSpline" {"catmull-rom-spline!" :methods} "CatmullRomSpline" {"catmull-rom-spline!" :methods}

View File

@@ -16,19 +16,23 @@
[:b (str name)] [:b (str name)]
" " " "
(string/join ", " (map param args))] (string/join ", " (map param args))]
(when text [:i text])]) (when text
[:i text])])
(defn create-from-file (defn create-from-file
[parsed-file] [{:keys [ns groups] :as parsed-file}]
(for [group (:groups parsed-file)]
[:div [:div
[:h1 {} (:name group)] (when (and ns (> (count groups) 0))
[:h1 ns])
(for [group groups]
[:div
[:h2 {} (:name group)]
(:docstring group) (:docstring group)
(for [[name items] (:java group)] (for [[name items] (:java group)]
[:div [:div
(when (not= (:name group) name) (when (not= (:name group) name)
[:h3 name]) [:h3 name])
(map item items)])])) (map item items)])])])
(defn create (defn create
[parsed-files] [parsed-files]