From a44e9548a25dbc0c5c258b5aa828ae975bcdbf15 Mon Sep 17 00:00:00 2001 From: Simon Brooke Date: Sun, 7 Apr 2024 22:13:59 +0100 Subject: [PATCH] comment out test code we don't want run every time the library is loaded! --- src/cljc/mw_engine/drainage.clj | 2 +- src/cljc/mw_engine/render.clj | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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))))