diff --git a/src/cljc/mw_engine/drainage.clj b/src/cljc/mw_engine/drainage.clj index d417443..54d4be9 100644 --- a/src/cljc/mw_engine/drainage.clj +++ b/src/cljc/mw_engine/drainage.clj @@ -285,4 +285,4 @@ "&" "&")))) -(visualise-drainage (run-drainage "resources/heightmaps/20x20/crucible.png") "test.html") \ No newline at end of file +;; (visualise-drainage (run-drainage "resources/heightmaps/20x20/crucible.png") "test.html") \ No newline at end of file diff --git a/src/cljc/mw_engine/render.clj b/src/cljc/mw_engine/render.clj index 0f00da2..245059f 100644 --- a/src/cljc/mw_engine/render.clj +++ b/src/cljc/mw_engine/render.clj @@ -5,7 +5,7 @@ interaction." ;; TODO: but possibly it would be better if there is to be a newer version of ;; mw-ui, to base it on this. - (:require [hiccup2.page :refer [xhtml]]) + (:require [hiccup2.core :refer [html]]) ) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; @@ -89,7 +89,7 @@ (defn world->html-file ([world output-path] - (spit output-path (str (xhtml (render-world-page world))))) + (spit output-path (str (html (render-world-page world))))) ([world output-path state-images-relative-path] (binding [*state-images-relative-path* state-images-relative-path] (world->html-file world output-path))))