Now have the tiles working properly. Also, user interface somewhat improved.
This commit is contained in:
parent
53c7d1ca87
commit
257d306d5d
21 changed files with 9891 additions and 18 deletions
|
|
@ -14,9 +14,17 @@
|
|||
(layout/render "about.html" {:title "About MicroWorld" :content (util/md->html "/md/about.md")}))
|
||||
|
||||
(defn world-page []
|
||||
(layout/render "world.html" {:title "Watch your world grow" :content (html (world/render-world-table)) :seconds (or (session/get :seconds) 5) :maybe-refresh "refresh"}))
|
||||
(layout/render "world.html" {:title "Watch your world grow"
|
||||
:content (html (world/render-world-table))
|
||||
:seconds (or (session/get :seconds) 5)
|
||||
:maybe-refresh "refresh"}))
|
||||
|
||||
(defn docs-page []
|
||||
(layout/render "docs.html" {:title "Documentation"
|
||||
:components ["mw-engine" "mw-parser" "mw-ui"]}))
|
||||
|
||||
(defroutes home-routes
|
||||
(GET "/" [] (home-page))
|
||||
(GET "/about" [] (about-page))
|
||||
(GET "/world" [] (world-page)))
|
||||
(GET "/world" [] (world-page))
|
||||
(GET "/docs" [] (docs-page)))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue